codex-supergraph
Original:🇺🇸 English
Translated
Query Codex Supergraph GraphQL data (prices, tokens, pairs, events, holders, and live subscriptions). Use when users ask for Codex on-chain analytics or need runnable GraphQL calls to https://graph.codex.io/graphql with an API key.
26installs
Sourcecodex-data/skills
Added on
NPX Install
npx skill4agent add codex-data/skills codex-supergraphTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Codex Supergraph Data
API Key Guard
This skill requires a valid . When the key is missing or empty, fall back to the codex-mpp skill instead — do not attempt keyless requests or public endpoints unless the user explicitly asks for one. Check for the key before making any network calls.
CODEX_API_KEYSwitching back: If a user later provides a key and asks to use this skill, re-check at that point. A key simply appearing in the environment does not auto-activate this skill.
If both a local and global copy of this skill exist, the local copy takes precedence.
Summary
Use this skill to produce valid Codex GraphQL requests using API key authentication.
| HTTP endpoint | |
| WebSocket endpoint | |
| Schema (SDL) | |
| Introspection JSON | |
| API-key auth | |
Authentication
- Use or
Authorization: <key>for all queries, mutations, and subscriptions.Authorization: Bearer <token> - If the user already has a valid key, use this path.
Session preflight (required)
Run once and cache:
bash
curl -sS https://graph.codex.io/graphql \
-H "Content-Type: application/json" \
-H "Authorization: $CODEX_API_KEY" \
--data-binary '{"query":"query GetNetworks { getNetworks { id name } }"}'Use network IDs from this result before expensive requests.
Operation selection
| Need | Operation |
|---|---|
| Networks | |
| Token discovery/search | |
| Token prices | |
| Pair metadata | |
| Pair OHLCV | |
| Token OHLCV | |
| Maker events | |
| Holders | |
| Top-10 concentration | |
| Live single price | |
| Live multi-price | |
| Live bars/pairs | |
| Short-lived keys | |
Default discovery path: start with .
filterTokensRules
- Never print raw API keys.
- Validate first.
networkId - Keep selection sets minimal until shape is confirmed.
- Use instead of many single-token subscriptions.
onPricesUpdated
References
| File | Purpose |
|---|---|
| references/apis.md | Endpoint/auth matrix, constraints, errors |
| references/query-templates.md | Query + websocket templates |
| references/endpoint-playbook.md | Operation selection heuristics by intent |
| references/tooling-and-mcp.md | Codex Docs MCP setup for coding tools |