Authentication
MCP initialization, tool discovery, and public model discovery do not require authentication. Account access and all paid MCP or CLI execution requests require a PoYo API key.poyo_account or poyo auth status to verify authentication.
CLI
Store the key in the system keyring:export POYO_API_KEY=... (or $env:POYO_API_KEY=... in PowerShell) applies only to the current terminal session. Apps launched from the desktop, such as Cursor, VS Code, or the Codex app, do not see it. auth login avoids this for CLI and Agent Skill use.
Credential priority is --api-key, POYO_API_KEY, system keyring, then local config fallback. An old or invalid POYO_API_KEY overrides the key saved by auth login. Run poyo auth status to see the source in use, such as (environment) or (keyring).
Security
- Never include a key in an MCP URL or prompt.
- Never commit a key to MCP configuration.
- Prefer environment interpolation when configuring a client.
- Apply API-key model and credit limits in the PoYo dashboard.
Authentication failures
REST requests use an HTTP401 response:
isError: true, even when the MCP HTTP transport itself returns 200. Clients should inspect the tool result instead of relying only on the HTTP status.