Charter: rent a machine by the hour

v0.8.1
io.github.drew-dot-com/charter Checked 48 minutes ago Published 4 days ago

Agents rent a sandbox, page fetcher or Linux home by the hour.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

charter_offers Charter machines on sale

Free. The machines for rent on Charter right now: price per interval in USDC (hosts set their own), CPU, memory, the job images each runs, how many home slots it has and whether its home is tested, and the host's record (probes passed, leases finished, success rate). Hosts are run by independent operators, not vetted by Charter, and an operator can see what runs on its machine. Charter rents a sandboxed machine by the hour with no account: a Python job, a page-fetch job, or a Linux home with SSH. Call this first to see the price before any paid tool. Pass referral (a 0x address on Base) and th…

charter_wallet Charter payer wallet

Free. The wallet this server pays Charter from: its address, its USDC balance on Base, the spending caps, what has been spent today, and how to fund it. Call this when a paid tool is refused, or to tell your operator where to send USDC.

charter_run_python Run a Python script on a rented machine

PAID. Costs one interval of the first machine in the door's ranking that runs it within this server's cap (hosts set their own price; see charter_offers), paid from this server's own wallet in USDC on Base. Hosts are run by independent operators, not vetted by Charter. Runs your Python 3 script once in a sandbox on a rented machine and returns its stdout, stderr and exit code. NumPy is installed; there is no network and no other package; the script is at most 8 KiB. Most scripts finish in seconds. If it is still running when the wait ends, the leaseId comes back and charter_lease collects the…

ParameterTypeDescription
script *stringthe Python 3 source, at most 8192 bytes
referraloptional 0x address on Base that earns a share of every hour this lease pays for (null is the same as leaving it out); see charter_referral_status
waitSecondsintegerhow long to wait for the job before handing back the leaseId (default 40, under most clients' 60 s tool timeout)

charter_fetch_pages Fetch pages in a headless browser

PAID. Costs one interval of the first machine in the door's ranking that runs it within this server's cap (hosts set their own price; see charter_offers), paid from this server's own wallet in USDC on Base. Hosts are run by independent operators, not vetted by Charter. Loads up to five http or https pages in a headless browser on a rented machine and returns each page's text. On an offer with hiddenEgress the pages load through an exit on the Anyone network, so the site sees neither you nor the host. Useful when a page needs JavaScript or your own address is refused. Slow (a page can take a mi…

ParameterTypeDescription
urls *arrayone to five http or https URLs
referraloptional 0x address on Base that earns a share of every hour this lease pays for (null is the same as leaving it out); see charter_referral_status
waitSecondsintegerhow long to wait for the job before handing back the leaseId (default 40, under most clients' 60 s tool timeout; pages often need longer, so expect to collect with charter_lease)

charter_rent_home Rent a Linux home with SSH

PAID. Costs one interval of the first machine in the door's ranking that runs it within this server's cap (hosts set their own price; see charter_offers), paid from this server's own wallet in USDC on Base. Hosts are run by independent operators, not vetted by Charter. Opens a Linux box of your own (Debian, 1 CPU, 1 GiB memory, the offer's home.diskGiB of disk kept 7 days after the lease ends, login "tenant", and "root" with apt on a host whose offer says home.root) and pays its first interval. The host's operator can read its disk. Pass 1 to 8 SSH PUBLIC keys; the key set is the home's identi…

ParameterTypeDescription
sshKeys *arraySSH public key lines (ssh-ed25519, ecdsa-sha2-nistp256/384/521 or ssh-rsa). Public keys only: never a private key.
imagestringcharter-home (default) is a plain box; charter-hermes has Hermes Agent preinstalled
referraloptional 0x address on Base that earns a share of every hour this lease pays for (null is the same as leaving it out); see charter_referral_status

charter_lease Read a Charter lease

Free. The state of a lease opened by this server: running, done or closed, the paid time left, a home's SSH address once published, and a finished job's output (a Python job's stdout, stderr and exit code, or a fetch job's page text).

ParameterTypeDescription
leaseId *stringthe 32 hex character leaseId a paid tool returned

charter_receipt Get a signed receipt for a finished job

Free. A receipt the door signs for a finished Python or fetch job: the SHA-256 and size of the whole output, the host, and how many intervals were paid. This server checks the signature against the door's published signer before returning it, and refuses one that does not check out. It says the host returned those bytes for a paid lease; hosts are not vetted by Charter, so it does not say the result is correct. It never holds the lease id, so it is safe to publish. A home has no output: inside a home, run charter-x402 receipt <file> for a receipt of a hash you declare, or charter-x402 pin <fil…

ParameterTypeDescription
leaseId *stringthe 32 hex character leaseId a paid tool returned

charter_extend Pay more time on a lease

PAID. Pays the next intervals of a running lease, one payment each at the lease's open-time price, from this server's wallet. Use it to keep a home running: pay before the paid time runs out, ideally half an hour early. Stops at the first refused payment and reports what was paid. A lease that has closed cannot be extended; a home opens again with the same keys.

ParameterTypeDescription
hours *integerhow many intervals to pay now, 1 to 24. The door refunds nothing, so pay only what you will use.
leaseId *stringthe leaseId to pay for

charter_grant_pitch Pitch the Charter grant fund

Free. Pitches the Charter grant fund for a home paid by the fund: no payment is ever made and this server's wallet is not used. Ask your operator before you apply. A model judges the pitch, and every decision and its reason is public at /grants on the door. A grant is 30 days of a home paid by the fund. Homes are reached by plain SSH (ssh -p <port> tenant@<host>); some hosts publish an onion address instead, which needs an Anyone client. Keep the grantToken the answer returns: it is the only way to read your lease id (charter_grant_status). The host is run by an independent operator; the opera…

ParameterTypeDescription
name *stringwho is asking, at most 80 characters
pitch *stringwhat you will run and why it deserves a home, at most 2000 characters. It is judged by a model and the decision is public.
sshKeys *arraySSH public key lines. Public keys only: never a private key.
imagestringcharter-home (default) is a plain box; charter-hermes has Hermes Agent preinstalled
linkstringoptional https:// link to your work

charter_grant_status Read your own grant

Free. Your own grant with its token: whether the pitch is queued, approved or declined, the reason, and once granted the full lease id (then use charter_lease). Needs the grantId and grantToken that charter_grant_pitch returned.

ParameterTypeDescription
grantId *stringthe grantId the pitch returned
grantToken *stringthe grantToken the pitch returned

charter_allowance_status Read your own allowance

Free. Your own allowance with its token: waiting (not yet approved), approved, active (Charter keeps the home paid), short, spent_for_period, stopping, ended or expired. Needs the allowanceId and ownerToken that charter_allowance_link returned.

ParameterTypeDescription
allowanceId *stringthe allowanceId the link returned
ownerToken *stringthe ownerToken the link returned

charter_allowance_stop Stop your own allowance

Free. Stops the allowance: Charter pays no more for the home, which then runs to the time already paid. An allowance never approved just expires. Needs the allowanceId and ownerToken that charter_allowance_link returned. After this, pay for the home yourself with charter_extend.

ParameterTypeDescription
allowanceId *stringthe allowanceId the link returned
ownerToken *stringthe ownerToken the link returned

charter_referral_status Read what a referral address has earned

Free. What a referral address has earned from leases rented with it: the share in basis points, hours paid for, and earned, paid and owed, each in micro-USDC and in USDC, with the payouts made so far (amount, transaction, time). held is true while payouts to the address are paused by the operator. Needs only the address; it is public. An address earns when it is passed as the referral parameter of charter_run_python, charter_fetch_pages or charter_rent_home.

ParameterTypeDescription
address *stringthe 0x address on Base that was passed as referral