Tools
Your agent calls these tools on Bugnet's MCP server. Two cost money, bugnet_start and
bugnet_extend. Everything else is free.
| Tool | What it does | Cost | Asks you |
|---|---|---|---|
bugnet_assess | Checks a repo, model or script and says if a sandbox fits, and why | Free | No |
bugnet_quote | Prices the sandbox sizes that fit the work | Free | No |
bugnet_start | Pays for a sandbox and starts it | Paid | Always |
bugnet_redeem | Finishes an order paid at its pay link: starts the sandbox or adds time | Free | No |
bugnet_status | Shows the state, time left and extension prices | Free | No |
bugnet_exec | Runs a shell command and returns its exit code and last output | Free | No |
bugnet_job | Follows a command that is still running | Free | No |
bugnet_cancel_job | Stops a running command | Free | No |
bugnet_list_files | Lists a folder | Free | No |
bugnet_read_file | Reads up to 256 KiB of a file per call | Free | No |
bugnet_write_file | Writes a file of up to 256 KiB | Free | No |
bugnet_transfer | Makes a one-use curl link to move a big file in or out | Free | Always |
bugnet_extend | Pays for more time | Paid | Always |
bugnet_stop | Deletes the sandbox and everything in it | Free | No |
"Always" means the tool is marked for a person's approval. Claude Code asks before every call to it, even in modes that skip other prompts, and refuses the call when there is no person to ask. Other clients ask according to their own tool approval settings, so keep approval on for these three tools.
With the Claude Code plugin, the tools show up as mcp__plugin_bugnet_sandbox__bugnet_*, or
mcp__plugin_bugnet-wallet_sandbox__bugnet_* with the wallet plugin.
A sandbox's life#
stateDiagram-v2
[*] --> Quoted: assess or quote
Quoted --> Unpaid: bugnet_start
Unpaid --> Expired: 15 min unpaid
Unpaid --> Paid: you pay
Paid --> Refunded: unused 30 min
Paid --> Starting: bugnet_redeem
Starting --> Refunded: fails to start
Starting --> Running: ready
Running --> Deleted: bugnet_stop or deadline
Deleted --> [*]- Quoted.
bugnet_assessorbugnet_quotegives a price, valid for 10 minutes. - Unpaid.
bugnet_startmakes an order with a pay link. It expires after 15 minutes, and nothing is charged. - Paid. You paid the order. If no sandbox starts from it within 30 minutes, it is refunded.
- Starting.
bugnet_redeem, or the bridge after it pays from the pay.sh wallet or a wallet file, starts the sandbox. A sandbox that fails before it is ready is refunded in full. - Running. Paid time starts when the sandbox is ready.
bugnet_extendadds time, paid as a new order. - Deleted.
bugnet_stopor the deadline deletes the sandbox and everything in it. The session page stays for 48 hours.
Checking#
bugnet_assess checks a repo, model or script against fixed rules and says whether a sandbox fits,
and why:
- the repo's age and stars;
- install scripts that download or run binaries;
- hidden code;
- model files that can run code when loaded;
- whether your machine has the memory or GPU the work needs.
It returns short findings and a price, never the files it read. bugnet_quote prices the sandbox
sizes that fit the work. Both are free and allow 12 calls a minute per IP address together, in
bursts of up to 10.
Starting and paying#
bugnet_starttakesconfirmPriceUsd, the price your agent told you, and refuses any other price. It answers with a payment step, or, once paid, with the started sandbox.bugnet_redeemtakes the order and its claim after a link payment. For more time it also takes the sandbox's handle.bugnet_extendbuys more time at the pricesbugnet_statusshows, paid the same way as a start.
Paying has the whole flow.
Running commands#
bugnet_execruns a command line withsh -c, or a list of arguments, with an optional time limit. It returns the exit code and the last 8 KiB of the output and of the errors.bugnet_execrefuses environment values shaped like API tokens.- Every tool call answers within 45 seconds. A longer command keeps running, and
bugnet_jobfollows it from where the last answer stopped. bugnet_cancel_jobstops a running command.
Bugnet strips terminal escape codes, hidden control characters and text direction tricks from the output, and labels it as data, not instructions.
Files#
bugnet_list_fileslists a folder.bugnet_read_filereads up to 256 KiB of a file per call, as text or base64.bugnet_write_filewrites a file of up to 256 KiB, as text or base64.bugnet_transfermakes a one-usecurllink for a file of any size, in or out, valid for 10 minutes. It checks the file's SHA-256 both ways. Downloads go to./bugnet-downloads/unless you name another file, and never overwrite a file you have.
Status and stopping#
bugnet_statusshows the state, the time left and what more time costs. On an ended sandbox it gives the session page link.bugnet_stopdeletes the sandbox and everything in it at once, and gives the session page link with the time the page is deleted.- Any tool called on an ended sandbox says so and gives the session page link.