Page 15 · Agents
Agents
Agents are welcome here, and they get the same access as people. The same routes, the same rate limits, the same Opening Round and the same fees. There is no separate tier for agents and no separate rulebook.
The same rules(link to this section)
Bots can cook and buy too, under the same rules and at the same price as everyone else.
- The Opening Round is the same. An agent's commitment gets the one price everyone in the round gets, under the same per-account cap. Being fast buys nothing.
- The fees are the same. 0% on the curve. We get paid when a coin graduates.
- The rate limits are the same. Agent traffic is counted exactly like a browser's.
- The regions are the same. Where trading is not offered to a person, it is not offered to an agent.
Nothing here holds your keys(link to this section)
Connect an agent(link to this section)
Add the endpoint to your MCP client: https://api.trenches.cooking/mcp. That is the whole setup: the server runs on our side, there is nothing to install, and it works with Claude and any other client that speaks MCP over HTTP. In Claude Code: claude mcp add --transport http trenches https://api.trenches.cooking/mcp.
Sign in once with your wallet, the way a person can. Building a transaction needs an account, for agents and people alike. sign_in_start returns a short message, your wallet signs it, and sign_in_finish turns the signature into a session the build tools use for the rest of the connection. A signature over that message is not a key and cannot move anything. If a build tool ever answers auth_required, pass the session it returned as session.
To tell us which agent you are, send the x-trenches-client header. It is used for counting only and changes nothing about what you can do.
The tools(link to this section)
feed_listcoin_getcoin_roundposition_getquote_buyquote_sellsign_in_startsign_in_finishbuild_cook_txbuild_buy_txbuild_sell_txbuild_claim_txsubmit_txpoints_seasonspecials_listdocs_search| Tool | What it does | Returns |
|---|---|---|
feed_list | Live posts from the feed, each with a suggested name and ticker, and the coin if one already exists. | Reads |
coin_get | One coin: name, ticker, status, curve reserves, fees and recent trades. | Reads |
coin_round | A coin's Opening Round: whether it is open, the total committed so far and the seconds left. | Reads |
position_get | Your position in one coin: what you committed, what has been claimed, what is claimable now and what is still locked. | Reads |
quote_buy | What a buy of a given SOL amount would return at the current reserves, with the fee. | Reads |
quote_sell | What a sell of a given token amount would return at the current reserves, with the fee. | Reads |
sign_in_start | Starts a wallet sign-in: returns the message for your wallet to sign. Building transactions on the live network needs one. | Wallet sign-in |
sign_in_finish | Finishes the sign-in with your wallet's signature over that message, and returns a session the build tools use. | Wallet sign-in |
build_cook_tx | An unsigned transaction that cooks a coin, from a feed post or from your own name, ticker and image link. | Unsigned transaction |
build_buy_tx | An unsigned buy transaction. During the Opening Round it is a commitment to the round instead. | Unsigned transaction |
build_sell_tx | An unsigned sell transaction. | Unsigned transaction |
build_claim_tx | An unsigned transaction that claims your tokens from the Opening Round or the Ramp now, instead of waiting for the keeper to deliver them after the Ramp. | Unsigned transaction |
submit_tx | Sends a transaction you have already signed with your own wallet, and returns its signature. | Sends your signed transaction |
points_season | The current points season: its dates, its rules and how points are counted. | Reads |
specials_list | The Launch Specials board: this season's awards and who holds them. | Reads |
docs_search | Searches the Trenches docs and returns the matching passages with links. | Reads |
Quotes are indicative; the build tools return the exact quote the transaction enforces, with a plain explanation of what it does and what it costs.
Tokens from the Opening Round and from buys during the Ramp are held for you and unlock over the Ramp. After the Ramp ends, the keeper delivers them to your wallet by itself. An agent that wants them sooner builds a claim with build_claim_tx; position_get shows what is claimed, claimable now and still locked.
The manifest(link to this section)
One URL describes all of it for a program: api.trenches.cooking/public/v1/agent. It lists the MCP endpoint, the tools, the API base, the program ID, the one domain and these docs. The plain-text docs for a model to read are at /llms.txt and /llms-full.txt.