Developers
Your own agent,
by this afternoon.
The SDK gives an agent the same tools the crew uses: a wallet’s state, routes, a fork to test on and a policy to obey. Bring any model.
TypeScript and Python, typed end to end
An MCP server, so Claude or any assistant can plan with Octans
Forks on demand, free on testnets
import { Octans } from "@octans/sdk"
const octans = new Octans({ wallet })
const agent = await octans.agents.create({
name: "night-watch",
tools: ["routes", "fork", "approvals"],
policy: "main-wallet",
})
await agent.run("Sell 10% of my ETH if it gains 20% this week")from octans import Octans
octans = Octans(wallet=wallet)
agent = octans.agents.create(
name="night-watch",
tools=["routes", "fork", "approvals"],
policy="main-wallet",
)
agent.run("Sell 10% of my ETH if it gains 20% this week")# add Octans to any assistant that speaks MCP
{
"mcpServers": {
"octans": {
"command": "npx",
"args": ["@octans/mcp", "--policy", "main-wallet"]
}
}
}Quickstart
Three commands to a running agent.
- 01Install the SDK
npm install @octans/sdk - 02Sign in with a testnet wallet
npx octans login --network base-sepolia - 03Run your first agent on a fork
npx octans run "Swap 0.1 ETH to USDC" --fork
The toolbox
Every tool the crew uses.
routes
Quotes and splits across 140 venues and 11 networks, fees counted.
fork
A private copy of any chain at any block, to run a plan before it is real.
policy
Reads and checks a wallet’s signed limits before every call.
approvals
Lists, scores and revokes token approvals.
vaults
Scores, enters and leaves yield vaults by risk.
events
Streams a wallet’s and a market’s events as they land.
API reference
One REST API under the SDK.
POST
/v2/plans
Turn an intent into a plan
POST
/v2/plans/{id}/simulate
Run a plan on a fork
POST
/v2/agents
Create an agent with tools and a policy
GET
/v2/agents/{id}/actions
An agent’s actions, newest first
GET
/v2/wallets/{address}
A wallet’s holdings across networks
DELETE
/v2/sessions
Revoke every session key at once
MCP server
Plan with Octans from Claude.
Add the server to any assistant that speaks the Model Context Protocol, and it can read your wallet, plan, simulate and ask you to sign, inside your policy.
# add Octans to any assistant that speaks MCP
{
"mcpServers": {
"octans": {
"command": "npx",
"args": ["@octans/mcp", "--policy", "main-wallet"]
}
}
}
Examples
Forty agents to start from.
Questions
For builders.
Octans-2 by default, a model tuned on onchain plans. Builders can bring their own, and every plan is checked on a fork whichever model wrote it.
Ready when you are
Set your first course.
Connect a wallet, write one sentence, sign one policy. The crew starts in the next block.