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)

Every transaction comes back unsigned. You sign it with your own wallet and send it yourself. The server never asks for a private key or a seed phrase, refuses one if it is pasted in, and signs nothing.

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_list
What it doesLive posts from the feed, each with a suggested name and ticker, and the coin if one already exists.
ReturnsReads
coin_get
What it doesOne coin: name, ticker, status, curve reserves, fees and recent trades.
ReturnsReads
coin_round
What it doesA coin's Opening Round: whether it is open, the total committed so far and the seconds left.
ReturnsReads
position_get
What it doesYour position in one coin: what you committed, what has been claimed, what is claimable now and what is still locked.
ReturnsReads
quote_buy
What it doesWhat a buy of a given SOL amount would return at the current reserves, with the fee.
ReturnsReads
quote_sell
What it doesWhat a sell of a given token amount would return at the current reserves, with the fee.
ReturnsReads
sign_in_start
What it doesStarts a wallet sign-in: returns the message for your wallet to sign. Building transactions on the live network needs one.
ReturnsWallet sign-in
sign_in_finish
What it doesFinishes the sign-in with your wallet's signature over that message, and returns a session the build tools use.
ReturnsWallet sign-in
build_cook_tx
What it doesAn unsigned transaction that cooks a coin, from a feed post or from your own name, ticker and image link.
ReturnsUnsigned transaction
build_buy_tx
What it doesAn unsigned buy transaction. During the Opening Round it is a commitment to the round instead.
ReturnsUnsigned transaction
build_sell_tx
What it doesAn unsigned sell transaction.
ReturnsUnsigned transaction
build_claim_tx
What it doesAn 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.
ReturnsUnsigned transaction
submit_tx
What it doesSends a transaction you have already signed with your own wallet, and returns its signature.
ReturnsSends your signed transaction
points_season
What it doesThe current points season: its dates, its rules and how points are counted.
ReturnsReads
specials_list
What it doesThe Launch Specials board: this season's awards and who holds them.
ReturnsReads
docs_search
What it doesSearches the Trenches docs and returns the matching passages with links.
ReturnsReads

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.