Quickstart
Build with cs2.sh from an AI coding agent such as Claude Code or Codex.
Get an API key
Subscribe to a plan, then copy your key from the dashboard. To try the API first, sign up and open a ticket in our Discord server for a free 2-day Developer key.
Give your agent the docs
Paste this into your agent:
Read https://cs2.sh/docs/quickstart.md and use the cs2.sh API.Then ask for what you want to build.
Connect the docs MCP server
The docs MCP server at https://cs2.sh/mcp lets your agent search and read these docs. It needs no API key.
Claude Code:
claude mcp add --transport http cs2sh-docs https://cs2.sh/mcpCodex:
codex mcp add cs2sh-docs --url https://cs2.sh/mcpDocs for agents
| Resource | Contents |
|---|---|
llms.txt | An index of every docs page, with Markdown links. |
llms-full.txt | Every docs page in one Markdown file, including examples and API objects. |
openapi.yaml | The OpenAPI 3.1 spec. |
Any docs URL plus .md | That page in Markdown, such as data-coverage.md. |
agent-card.json | The base URL, authentication, rate limits, and every /v1 endpoint with the plans that can call it. |
GET /v1/live/capabilities | The JSON Schema for every live request and response, with each operation's filters, sort fields, and an example body. |
Agent instructions
- Send requests to
https://api.cs2.shwithAuthorization: Bearer <key>andAccept-Encoding: gzip. - Keep the key on the server. Don't put it in browser or client code.
- Call
GET /v1/accountfirst. It returns the key's plan, its limits, and the endpoints it can call. - Find the endpoints the task needs in llms.txt.
- Build each live request body from
GET /v1/live/capabilities?market=<market>&operation=<operation>. - Handle errors by status:
400: themessageanddetailssay what to fix.401: the key is missing, malformed, invalid, or expired.403witherrorset toforbidden: the plan doesn't include the endpoint.429from a live endpoint: waitdetails.retry_after_seconds, then retry.- Any other
429: retry with a bounded delay.