codex-supergraph

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.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "codex-supergraph" with this command: npx skills add codex-data/skills/codex-data-skills-codex-supergraph

Codex Supergraph Data

API Key Guard

This skill requires a valid CODEX_API_KEY. 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.

Switching 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 endpointhttps://graph.codex.io/graphql
WebSocket endpointwss://graph.codex.io/graphql
Schema (SDL)https://graph.codex.io/schema/latest.graphql
Introspection JSONhttps://graph.codex.io/schema/latest.json
API-key authAuthorization: <key> or Authorization: Bearer <token>

Authentication

  • Use Authorization: <key> or Authorization: Bearer <token> for all queries, mutations, and subscriptions.
  • If the user already has a valid key, use this path.

Session preflight (required)

Run once and cache:

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

NeedOperation
NetworksgetNetworks
Token discovery/searchfilterTokens
Token pricesgetTokenPrices
Pair metadatapairMetadata
Pair OHLCVgetBars
Token OHLCVgetTokenBars
Maker eventsgetTokenEventsForMaker
Holdersholders
Top-10 concentrationtop10HoldersPercent
Live single priceonPriceUpdated
Live multi-priceonPricesUpdated
Live bars/pairsonBarsUpdated, onPairMetadataUpdated, onTokenBarsUpdated
Short-lived keyscreateApiTokens, apiTokens, apiToken, deleteApiToken

Default discovery path: start with filterTokens.

Rules

  • Never print raw API keys.
  • Validate networkId first.
  • Keep selection sets minimal until shape is confirmed.
  • Use onPricesUpdated instead of many single-token subscriptions.

References

FilePurpose
references/apis.mdEndpoint/auth matrix, constraints, errors
references/query-templates.mdQuery + websocket templates
references/endpoint-playbook.mdOperation selection heuristics by intent
references/tooling-and-mcp.mdCodex Docs MCP setup for coding tools

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

agent-payments

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

crypto-report

No summary provided by upstream source.

Repository SourceNeeds Review
764-aahl
Web3

agentwallet

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

valtio-define

No summary provided by upstream source.

Repository SourceNeeds Review
434-hairyf
codex-supergraph | V50.AI