Use AgentQL Skill in Codex
Codex is a good fit when you want the agent to call AgentQL directly during research, validation, or lightweight operator tasks.
Setup
Install the published skill
Install command
npx skills add AgentQL/skills -g -yExport one API key
Create the key on agentql.tomo.inc, then expose it to the Codex environment:
Export API key
export AQL_WORKSPACE_API_KEY="<workspace_api_key>"Keep endpoint truth externalized
Use
agentql.tomo.inc/nodesas the endpoint source of truth instead of freezing hosts into prompts.
Recommended tasks
- quick market reads such as price, asset, market, or OHLCV lookups
- EVM RPC checks such as
eth_blockNumberoreth_chainId - MCP-style tool tasks when the runtime already prefers tool delegation
- validation flows where you want the agent to test a hosted call before writing app code
Prompt patterns
Use the installed AgentQL skill to return the latest price for WETH on ethereum. Resolve the asset first only if the token name is ambiguous.Use the installed AgentQL skill to call the public EVM RPC route for ethereum and return eth_blockNumber.Routing rule
- For market reads, prefer Market HTTP.
- For live subscriptions, prefer Market WebSocket.
- For raw chain compatibility, prefer EVM RPC HTTP or RPC WebSocket.
- For tool-native workflows, prefer MCP Service.
Avoid
- Do not hardcode production hostnames into prompt text.
- Do not route hosted calls straight to upstream providers.
- Do not use raw RPC for price or OHLCV tasks when the market surfaces already cover the request.
Last updated on