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 underhttps://api.shumi.ai/api/cli and takes the key as a Bearer token.
$SHUMI_TOKEN for your key: export SHUMI_TOKEN=shumi_sk_your_key_here.
Cost per call
On the free plan each call counts as one question: 10 to start, then 1 per day. After that the API answers402 Payment Required and offers pay per call in USDC. Plans and Quotas has the limits for each plan.
Read the response
Every data route except the plain-word question route answers in the same envelope.Add Shumi to an AI agent
The hosted MCP server needs nothing installed. Send the key as a header.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:

