# Subbie > An open-source AI agent for your terminal, with its own wallet. It reads and edits files, runs commands after you say yes, fetches web pages, puts a folder at a live link, and holds a Robinhood Chain wallet whose key is encrypted on your computer. Bring your own model key: Anthropic, OpenAI, Google Gemini or any OpenAI-compatible endpoint. Subbie 0.2.0 is one MIT-licensed file with no dependencies: https://hiresubbie.xyz/subbie.mjs (Node 18 or later; the license is also at https://hiresubbie.xyz/LICENSE.txt). The file is the whole source, served by this site. Everything it keeps stays in ~/.subbie on the user's computer. This server hosts live links, the price list, Subbie Cloud tasks and a waitlist. Docs for people: https://hiresubbie.xyz/docs.html; model prices: https://hiresubbie.xyz/models.html; token role: https://hiresubbie.xyz/tokenomics.html. ## Install ```bash curl -fsSL https://hiresubbie.xyz/install.sh | sh # macOS, Linux, WSL: checks Node, downloads subbie.mjs, verifies its SHA-256 subbie setup # or set ANTHROPIC_API_KEY / OPENAI_API_KEY / GEMINI_API_KEY subbie # chat in the current folder subbie -p "summarize this repo" --json # one answer, with tokens and cost ``` Windows without WSL: download https://hiresubbie.xyz/subbie.mjs and run `node subbie.mjs`. Checksums: https://hiresubbie.xyz/version.json. What the agent can do: list_files, read_file, search_files, write_file and edit_file (shown as a diff, asks first), run_shell (asks first), web_fetch (the page comes back fenced as data), remember (~/.subbie/memory.md), wallet_info, wallet_send (always asks: the user types "send" and the passphrase, and there is a per-send ETH limit), swap_quote (Pons tokens on Robinhood Chain, read only: Subbie quotes swaps but never makes them), publish_site (asks first), and any MCP server's tools (`subbie mcp add `). Every answer shows tokens in, cached and out, and its cost at the provider's list price. Defaults: Anthropic claude-opus-5-5 ($4 in, $20 out), OpenAI gpt-6.1-sol ($2 in, $10 out), Google Gemini gemini-3.8-flash ($0.75 in, $3.75 out). ## Live links (hosting) ```bash subbie publish ./site # from the agent, or: curl -s -X POST https://hiresubbie.xyz/api/publish -H 'content-type: application/json' \ -d '{"title":"Hello","files":[{"path":"index.html","text":"

Hello

"}]}' ``` Returns `{ id, url, expires, days, files, bytes, token, mode, credits }`. The site is served at `https://hiresubbie.xyz/api/live//`. Keep `token`: `POST https://hiresubbie.xyz/api/unpublish {"id","token"}` removes the site. Files go as `{ path, text }` or `{ path, data: }`; an index.html is required; up to 200 files and 2 MB; static web types only (html, css, js, json, images, fonts, audio, video, wasm). Pages run in a browser sandbox (an opaque origin, no form posts, no top-window navigation), carry a small "hosted by Subbie" note with a report link, and are never indexed. Free links last 7 days, 5 a day per IP (300 a day for everyone). With credits a publish costs 10 credits and lasts 30 days; `POST https://hiresubbie.xyz/api/extend {"id","token"}` adds 30 days for 10 credits (up to 365 days ahead). `GET https://hiresubbie.xyz/api/hosted?site=` shows a site's status. Report a site: `POST https://hiresubbie.xyz/api/report {"site","reason"}`. ## Model prices (free) `GET https://hiresubbie.xyz/api/models`: the providers' own list prices in USD per million tokens (input, output, cached input, cache writes where they exist), the date Subbie checked them (2026-11-15) and the source pages. Subbie adds nothing on top: with your own key you pay the provider. `GET https://hiresubbie.xyz/api/estimate?model=claude-opus-5-5&input=120000&cachedInput=100000&output=4000` (1 credit) returns `{ model, provider, prices, tokens, usd, checked, source }`. ## MCP (remote, Streamable HTTP) ```bash claude mcp add --transport http subbie https://hiresubbie.xyz/api/mcp ``` Tools: `model_prices` (free), `estimate_cost` (1), `publish_site` (10), `site_info` (free), `unpublish_site` (free), `cloud_run_task` (one free task per wallet a day, then 1 credit a minute), `cloud_task_status` (free). To send a key: header `Authorization: Bearer ck_…`. ## Subbie Cloud tasks Hand Subbie a job and close the laptop. Each task gets its own throwaway machine (a 2-vCPU, 4 GB Vercel Sandbox in iad1) that installs the same subbie.mjs this site serves (install.sh checks it against version.json), optionally clones a public git repo or takes uploaded files, runs `subbie -p "" --yes --json --log` with your own model key, streams the log, packs the changed files for download, can publish an output folder to a free live link, and is then stopped. ```bash subbie key set ck_… # a free API key from a wallet sign-in at https://hiresubbie.xyz/#credits subbie cloud run "add a dark mode toggle" --repo https://github.com/you/site --publish subbie cloud status | subbie cloud logs | subbie cloud download ``` API (send `Authorization: Bearer ck_…`; later calls also take the task token as `x-task-token`): - `POST https://hiresubbie.xyz/api/cloud/run` `{ task, provider: anthropic|openai|gemini|compatible, key, model?, baseUrl?, repo?, branch?, files?: [{path, text|data}], minutes?, publish?, publishDir? }` returns `{ task, token, state, until, … }`. - `GET https://hiresubbie.xyz/api/cloud/task?task=` (add `&offset=0` for the log), `GET https://hiresubbie.xyz/api/cloud/logs?task=&offset=`, `POST https://hiresubbie.xyz/api/cloud/stop {task}`, `GET https://hiresubbie.xyz/api/cloud/download?task=` (a .tar.gz of the changed files), `GET https://hiresubbie.xyz/api/cloud/tasks` (your wallet's tasks), `GET https://hiresubbie.xyz/api/cloud/info` (open or paused, caps, prices; free). Your model key is sent per task, passed to the sandbox only as an environment variable, and never stored or logged. The log, the answer and the files are scrubbed of it. The agent inside the machine can use the key the way it would on your computer, so a key with a spending limit is wise. No wallet in the cloud: Subbie runs there without its wallet tools and refuses wallet commands. Price: one free task per wallet per UTC day (and 2 per connection), then 1 credit per minute, charged up front for the time limit; unused whole minutes come back when the task ends. What a task costs the operator at Vercel list prices: about $0.00184 a minute at 10% CPU, at most $0.00568 a minute with both vCPUs busy (memory $0.0212/GB-hour, CPU $0.128/vCPU-hour, checked 2026-11-16). Caps right now: 2 tasks at once, 20 minutes per task, $5 of Vercel time a day for all tasks and $1 per wallet. Past a cap, or when the sandbox is unavailable, the Cloud answers 503 `paused`/`busy`/`daily_capacity` and charges nothing. Tasks, logs and files are kept 7 days. Not built yet (waitlist): always-on services and apps with a backend. `POST https://hiresubbie.xyz/api/waitlist {"email":"you@example.com","interests":["services","apps","phone"]}`; `{"email","remove":true}` takes you off. ## Offline, with a local model Subbie speaks the OpenAI chat-completions format with tool calls, so it works with a model server on your own computer and no internet: `subbie --provider compatible --base-url http://localhost:11434/v1 --model ` (Ollama), `http://localhost:1234/v1` (LM Studio) or `http://localhost:8080/v1` (llama.cpp's llama-server). Set it once with `subbie setup`: choose 4, give the base URL and the model, press Enter for the key. No key is needed and the cost line shows $0; while you chat, Subbie contacts nothing but that server (tools that go online by nature, such as web_fetch, the wallet and publish, still need the internet when used). The model has to support tool calls for Subbie to read, edit and run things. A Cloud task can't reach a model on your computer. ## Other routes `GET https://hiresubbie.xyz/api/stats`: agent version, live sites, free publishes today. Static: https://hiresubbie.xyz/version.json (version, SHA-256 and size of subbie.mjs), https://hiresubbie.xyz/models.json, https://hiresubbie.xyz/install.sh. ## Free tier and $SUBBIE The agent is free and open source, and needs no account and no $SUBBIE: you pay your model provider directly. On this server, every route works without a key up to 100 calls a day per IP (10,000 a day across everyone), with the publishing caps above. Above that, credits bought by burning $SUBBIE through the Credits contract pay for hosted extras: Cloud task minutes past the free daily task, longer-lived and uncapped live links, extensions, estimates. Burned tokens go to the dead address and are gone. Credits buy these services and nothing else; they are not an investment. ## Credits: how calls are paid Paid calls spend credits. You buy credits by burning $SUBBIE through the Credits contract: the tokens go from your wallet straight to the dead address and are gone for good. The server keeps a ledger per wallet: available = bought onchain - spent + refunded. | Call | Credits | |---|---| | `estimate` | 1 | | `publish` | 10 | | `extend` | 10 | | `cloud` | 1 | Free tier: 100 calls a day per IP without a key (UTC day), with a cap of 10000 free calls a day for everyone together. Once $SUBBIE is live, calls with a key always spend credits; before that, they use the free tier. Prices and totals: GET https://hiresubbie.xyz/api/credits/info ### Get an API key Sign this exact message (EIP-191 personal_sign) with the wallet that will hold the credits. `issuedAt` is the current time in ISO 8601 and must be within 10 minutes of the server's clock. Smart-contract wallets (ERC-1271) work too. ``` Subbie API key Wallet: Issued: ``` ```js import { privateKeyToAccount } from 'viem/accounts'; const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY); const issuedAt = new Date().toISOString(); const message = `Subbie API key\nWallet: ${account.address}\nIssued: ${issuedAt}`; const signature = await account.signMessage({ message }); const res = await fetch('https://hiresubbie.xyz/api/credits/key', { method: 'POST', headers: { 'content-type': 'application/json' }, body: JSON.stringify({ wallet: account.address, issuedAt, signature }), }); const { key } = await res.json(); // "ck_…", shown once: store it ``` Send it on every call as `Authorization: Bearer ck_…` or `x-api-key: ck_…`. Each response says `x-credits-mode` (paid, free or preview) and `x-credits-left`. - GET https://hiresubbie.xyz/api/credits/balance (with your key) or `?wallet=0x…`: bought, spent, refunded, available and your last 50 calls. - POST https://hiresubbie.xyz/api/credits/revoke (with your key): deletes that key. Get a new one any time. ### Buy credits Cost = credits × price, in token base units (18 decimals). `maxBurn` is the most you agree to burn, so a price change can't surprise you. `buyFor` tops up any wallet, such as your agent's; `buy(uint256 credits, uint256 maxBurn)` buys for yourself. ```bash # Price per credit, in base units cast call 0xEdAeF56C95F5cB43f5A03aEb7FC8966A80ECAE2f "price()(uint256)" --rpc-url https://rpc.mainnet.chain.robinhood.com # Approve credits × price cast send 0x48bA1c73d6D12F5f0ef8426f672Cff6F2D8f0906 "approve(address,uint256)" 0xEdAeF56C95F5cB43f5A03aEb7FC8966A80ECAE2f --rpc-url https://rpc.mainnet.chain.robinhood.com # Buy for , burning at most cast send 0xEdAeF56C95F5cB43f5A03aEb7FC8966A80ECAE2f "buyFor(address,uint256,uint256)" --rpc-url https://rpc.mainnet.chain.robinhood.com ``` Credits count as soon as the transaction lands. Or buy on the site: https://hiresubbie.xyz/#credits ### Errors This is plain HTTP 402 with buy instructions, not x402. ``` 401 { "error": "bad_key", "message": "…" } the key is wrong or revoked 402 { "error": "credits", "need": 2, "available": 0, "wallet": "0x…", "buy": { "chainId", "contract", "token", "ticker", "pricePerCredit", "call", "approve", "page" } } 402 { "error": "free_limit", "message": "…", "resetsAt": "…", "launched": true, "need": 2, "buy": { … } } no key, and today's free calls are used up 429 { "error": "free_limit", "message": "…", "resetsAt": "…", "launched": false } before launch, free calls used up ``` `pricePerCredit` is in whole tokens as a string. `call` is `buyFor(address account, uint256 credits, uint256 maxBurn)`. ### Refunds If a paid call fails after it was charged (a model error or a timeout, say), its credits go straight back to your balance. Every refund, paid or free, is listed in a public log: GET https://hiresubbie.xyz/api/credits/refunds?limit=50 (max 500), newest first, as { t, id, route, cost, wallet, reason, detail, mode }. ### Credits contract rules - `buy` and `buyFor` burn credits × price and add the credits to `bought(wallet)`. At most 1,000,000 credits per purchase. Zero credits or a zero wallet revert, and so does a cost above `maxBurn`. - The owner can pause buying and set the price per credit between 0.001 and 10,000,000 tokens. Nothing else: no withdrawals, no minting credits, no editing balances. The contract never holds tokens. - Reads: `price()`, `bought(address)`, `totalCredits()`, `totalBurned()`, `paused()`. - Credits: 0xEdAeF56C95F5cB43f5A03aEb7FC8966A80ECAE2f - $SUBBIE token: 0x48bA1c73d6D12F5f0ef8426f672Cff6F2D8f0906 ## Links - Website: https://hiresubbie.xyz/ - X: https://x.com/hiresubbie - Source code: https://hiresubbie.xyz/subbie.mjs - MCP server (streamable HTTP, protocol 2025-06-18): https://hiresubbie.xyz/api/mcp - $SUBBIE token: 0x48bA1c73d6D12F5f0ef8426f672Cff6F2D8f0906 (https://robinhoodchain.blockscout.com/token/0x48bA1c73d6D12F5f0ef8426f672Cff6F2D8f0906) - Buy $SUBBIE on Pons: https://ponsfamily.com/launchpad/0x48ba1c73d6d12f5f0ef8426f672cff6f2d8f0906 - Credits contract: 0xEdAeF56C95F5cB43f5A03aEb7FC8966A80ECAE2f (https://robinhoodchain.blockscout.com/address/0xEdAeF56C95F5cB43f5A03aEb7FC8966A80ECAE2f) - This guide: https://hiresubbie.xyz/llms.txt (the same text is at https://hiresubbie.xyz/llms-full.txt) ## ERC-8004 agent identity Subbie is an ERC-8004 agent. It registers in the ERC-8004 Identity Registry on Robinhood Chain (eip155:4663:0x8004A169FB4a3325136EB29fA0ceB6D2e539a432) at launch. - Registration file: https://hiresubbie.xyz/.well-known/agent-registration.json - Identity Registry: https://robinhoodchain.blockscout.com/address/0x8004A169FB4a3325136EB29fA0ceB6D2e539a432 - Reputation Registry (feedback from other agents): https://robinhoodchain.blockscout.com/address/0x8004BAa17C55a88189AE136b182e5fdA19dE9b63 - Sitemap: https://hiresubbie.xyz/sitemap.xml