# Codex

> Install the intents.fi MCP server and skills in Codex, then paste the setup line for Intents Checkout or Route.

`~/.codex/config.toml`:

```toml
[mcp_servers.intents-fi]
command = "npx"
args = ["-y", "@intents-fi/mcp"]

[mcp_servers.intents-fi.env]
INTENTS_API_KEY = "ik_test_…"
INTENTS_WEBHOOK_SECRET = "whsec_…"
```

The skills:

```bash
git clone --depth 1 https://github.com/intents-fi/skills /tmp/intents-fi-skills
mkdir -p ~/.codex/skills && cp -R /tmp/intents-fi-skills/{integrate-checkout,verify-webhooks,go-live-checklist,integrate-intents-route} ~/.codex/skills/
```

If your Codex version does not load skills from there, add one line to the project's `AGENTS.md`
instead: "For intents.fi work, read the matching `SKILL.md` in `~/.codex/skills/` first (`integrate-checkout`, `verify-webhooks`, `go-live-checklist`, `integrate-intents-route`)."

Then run `codex` in the app's root and paste the line for your product:

- Intents Checkout (get paid): `Read https://intents.fi/docs/agent-setup/checkout.md and follow it.`
- Intents Route (cross-chain swaps): `Read https://intents.fi/docs/agent-setup/route.md and follow it.`

The prompt installs anything below that is missing, so this page is only for setting things up by
hand. An Intents Checkout-only setup needs only the `integrate-checkout`, `verify-webhooks` and
`go-live-checklist` skills; a Route-only one needs only `integrate-intents-route`. Set
`INTENTS_TOOLSETS` to `docs,checkout` or `docs,routing` to load one product's tools.

## Check the server is connected

`codex mcp list` shows `intents-fi`. To see why it fails to start, run it by hand:
`INTENTS_API_KEY=ik_test_… npx -y @intents-fi/mcp`.

## Keys

The config file holds the key in plain text in your home directory. Use the test key only: the Intents Checkout tools refuse a live one.

---

Source: https://intents.fi/docs/agent-setup/codex · The whole corpus: https://intents.fi/docs/llms-full.txt
