Skip to content
Section

Agent API keys

Agent keys let a bot, a script or an AI agent use your Chartist account without your password or any private key. Each key does only what you scope it to, and you can revoke it in one click.

  • Agent API keysLive
    Scoped read or trade keys for bots and AI agents. Trade keys carry an hourly cap; every key expires.
  • API v1Coming soon
    One versioned API for trading, launches, wallets, funding, orders, PnL, claims and data. Built, not switched on yet.
  • TypeScript SDK and MCP serverPlanned
    A typed client for the API and agent tools that preview every action before it runs.

Creating a key

  • Signed in, open Wallets → Agent keys. Keys can only be created there, by you.
  • Pick a scope. Read covers market data and your wallets and positions. Trade adds buying, selling, orders and moving funds between your own wallets, with the same checks as the terminal.
  • A trade key needs an hourly SOL cap (it starts at 2 SOL) and the same confirmation as a withdrawal: your password, a wallet signature or Google.
  • Pick when it expires: 30 days to a year (90 by default). Every key expires; swap a new one into your bot before then.
  • The key is shown once. Chartist stores only a hash of it.

What a key can never do

  • Export a private key.
  • Withdraw to an address outside your account.
  • Create, import or delete wallets.

Those actions need you, signed in, and the key is refused at each of them.

A trade key can still spend your SOL
A trade key cannot take funds out of your account, but it can buy and sell with them. A leaked trade key could spend up to its hourly cap buying whatever coin its holder picks, until it expires or you revoke it. Keep the cap low, use read-only keys wherever you can, and revoke a key the moment you think it has leaked.

Using a key

  • Send it as Authorization: Bearer chartist_sk_….
  • Every answer to a request made with your key carries its expiry in the Chartist-Key-Expires header (a UTC timestamp), so your bot can see the date coming without opening the app.
  • Amounts are whole lamports (or token base units) as decimal strings, never floating-point numbers.
  • The machine-readable contract (every endpoint, scope and error) is at https://chartist.cc/api/agent/manifest.

Webhooks

Attach an HTTPS endpoint to a key to be told about its fills and stopped campaigns. Each delivery carries a timestamp and an HMAC-SHA256 signature in the chartist-signature header; check both before you trust it.