Skip to main content

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.

Cost per call

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. 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.
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 to load the tools. MCP Server lists them and has the JSON config for Claude Desktop and Cursor. To script the terminal, see CLI.