YELLOW_PRO_API_KEY, YELLOW_PRO_API_SECRET, and YELLOW_PRO_APP_SESSION_ID.
Creating an API key
The API key flow authenticates your wallet, exchanges the signature for a JWT, then uses that JWT to mint a key.1
Request a challenge
POST /auth/challenge returns a challenge string to sign. See the Authentication Service API.2
Sign the challenge with your wallet
Sign the returned message with the wallet that owns the account. This is the EIP-191 step the MCP does not perform.
3
Exchange the signature for a JWT
POST /auth/verify returns a session and a JWT for the authenticated wallet.4
Create the API key
POST /accounts/api-keys, authenticated with that JWT, returns the key and secret. See API Key Management.The app session id
YELLOW_PRO_APP_SESSION_ID is required for every private request and is included in the request signature, so no account or trading tool works without it.
A session identifier is returned by
POST /auth/verify and surfaced by GET /auth/me. If you are unsure which value belongs in this variable, or whether yours has expired, contact support rather than guessing — a wrong or stale value fails every private call.Scopes and tools
API keys carry scopes. Granting only what you need avoids a class of403 responses and limits the damage if a config file leaks.
If a tool returns a permission error, check the key’s scopes before anything else. See Troubleshooting.
Environments
Credentials are environment-specific: keys created against production do not work against staging, and vice versa.Where credentials are stored
Credentials are sent only to the Yellow.pro API, but the setup helpers write them to disk in cleartext:claude mcp add -s userwrites the key and secret to~/.claude.jsonyellow-pro setup openclawwrites them to~/.openclaw/openclaw.json- The one-line installer places them in your shell history
POST /accounts/api-keys revocation or the web UI, then issue a new one.