Skip to main content
Get an API key, make your first call and connect an AI agent. For the web chat and the first terminal commands, start on the Overview.

Get an API key

Keys come from the CLI. Needs Node 22 or later.
shumi login opens your browser to sign in. shumi keys create prints a key that starts with shumi_sk_. shumi keys list shows your keys and shumi keys revoke <prefix> removes one.

Call the API

Every route sits under https://api.shumi.ai/api/cli and takes the key as a Bearer token.
Some examples use $SHUMI_TOKEN for your key: export SHUMI_TOKEN=shumi_sk_your_key_here. The API Overview and the endpoint reference in the sidebar list every route.

What a call costs

On the free plan each call counts as one question: 10 to start, then 1 per day. After that the API answers 402 Payment Required and offers pay per call in USDC. See Plans and Quotas and Pay Per Call.

Read the response

Every data route except the plain-word question route answers in the same envelope.
Check meta.data_age_seconds before you act on a price or a funding rate. Coverage lists how often each kind of data refreshes.

Add Shumi to an AI agent

The hosted MCP server needs nothing installed. Send the key as a header.
In Claude, choose Add custom connector, open the request headers and enter URL https://mcp.shumi.ai/mcp, header name Authorization, header value Bearer shumi_sk_your_key_here. To run the server on your own machine, the package is @shumi-ai/mcp and the key goes in SHUMI_TOKEN:
Restart the client. Tools such as get_coin_risk, scan_coins and ask_shumi appear. MCP Server lists them all and shows the JSON config for Claude Desktop and Cursor. To script the terminal, see CLI.