Skip to Content

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 -y

Export 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/nodes

as the endpoint source of truth instead of freezing hosts into prompts.

  • quick market reads such as price, asset, market, or OHLCV lookups
  • EVM RPC checks such as eth_blockNumber or eth_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

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