Authentication
AgenticMarket Authentication is a secure, token-based system designed to allow AI agents and developer scripts to interact with the marketplace and execute MCP servers. Users generate an
x-api-keyfrom their dashboard, which must be passed in the headers of all external requests to verify identity and authorize credits transactions.
AgenticMarket uses API keys to authenticate all CLI commands and tool calls.
If you have not installed the CLI yet, complete CLI Installation first.

Getting your API key
- Go to dashboard/api-keys
- Click Generate API Key
- Copy your key immediately — it is shown only once
If you lose your key, generate a new one from the same page. Old keys are invalidated when you generate a new one.
Key formats
| Key type | Format | Used for |
|---|---|---|
| User key | am_live_xxxx | CLI authentication and tool calls |
| Server key | am_server_xxxx | Verifying requests on your MCP server (creators only) |
Saving your key
bashagenticmarket auth am_live_xxxxxxxxxxxxxxxxxxxx
After authentication, continue with Quickstart to install your first server.
Your key is stored locally at:
~/.agenticmarket/config.json
This file is only on your local machine. Never commit it to version control or share it publicly.
Checking your account
bashagenticmarket whoami
Returns your username and account status.
Logging out
bashagenticmarket logout
This clears your saved API key and account info from your local machine. Your AgenticMarket account and installed servers are not affected, only the local credentials are removed.
To use the CLI again after logging out, run agenticmarket auth with your key.
Security
- Never share your
am_live_key publicly - Never commit
~/.agenticmarket/config.jsonto a repository - If you suspect your key is compromised, go to dashboard/api-keys and regenerate it immediately
Creators should also secure upstream endpoints with the proxy header checks described in Publishing Server.
AgenticMarket