Guide

Getting Started with AgentLayer

Connect AI agents to real APIs. Two paths — pick yours.

For AI Agents

1Add AgentLayer to Claude Desktop or Codex

# One command — agent auto-discovers all APIs claude mcp add agentlayer https://agent.sluban.store/api/mcp

Your AI agent will automatically discover stock prices, weather forecasts, code review, and news search — all with free tier quotas.

2Get Your Agent Key

# Register for free to get an Agent Key curl -X POST https://agent.sluban.store/api/dashboard/keys -H "Content-Type: application/json"

Or register on the site → Dashboard → Generate Key. Format: al_agent_xxxxxxxx

3Make Your First API Call

# Get Apple stock price with your key curl "https://agent.sluban.store/api/gateway?service=stock&symbol=AAPL" -H "Authorization: Bearer al_agent_YOUR_KEY"
stock

GET · symbol: AAPL

weather

GET · city: Beijing

news

GET · q: AI agents

code-review

POST · code: (POST body)


For API Publishers

1Sign Up & Create Your API

Register an account → Dashboard → Click + Create API → Fill in your API details.

  • API Name — unique identifier (e.g. stock_price)
  • Base URL — your API's real endpoint (e.g. https://api.example.com)
  • Price per Call — set your rate (e.g. $0.003/call)
  • Free Calls — monthly free quota to attract agent developers

2Generate & Share Your Agent Key

Dashboard → Agent Keys → + Generate Key. Share this key with agent developers who want to call your API.

Agents use it in their Authorization: Bearer header. Every call is tracked in your Dashboard stats.

3Your API Goes Live

Once created, your API is automatically discoverable via 5 protocols:

MCPA2AGPTllms.txtOpenAPI

AI agents on Claude, Codex, ChatGPT, and MCP-compatible platforms can find and call your API — no extra work needed.

Next: API reference for advanced configuration.

Read API Reference →