In this section: OpenClaw
OpenClaw
Connect an OpenClaw agent to the Miles wallet over MCP or use a skill for Miles' chat answers.
Two connections
One Miles account supports two connections. The MCP server gives your agent read access to your wallet by default and lets it make changes only when you enable them. The ask-miles skill gives it Miles' chat answers. Use both when your agent needs wallet access and a complete answer.
A free Miles account is required. Connect the wallet by copying and pasting; the skill needs one API key, which you can create in Settings with one click.
MCP
Your cards, valuations, and Miles' transfer math, as tools your agent calls directly. Add the server:
openclaw mcp set miles '{"url":"https://mcp.askmiles.ai/mcp","transport":"streamable-http","auth":"oauth"}'openclaw mcp login milesThe command prints an approval link. Open the link and approve. OpenClaw's docs say login completes on the localhost callback. If the command exits without waiting, or the browser lands on a localhost address that will not connect, as on a remote or headless machine, copy the code parameter from the page's address bar and finish with openclaw mcp login miles --code <code>.
The approval screen lists exactly what the app can see. This screen grants read access and keeps wallet changes off until you enable their separate toggle.
mcporter
Managing your agent's MCP servers with mcporter? mcporter uses the same server and approval screen. Run both commands from the same directory because mcporter stores its config relative to that directory. The flow completes automatically after you approve in the browser.
mcporter config add miles --url https://mcp.askmiles.ai/mcp --auth oauthmcporter auth milesSkill
The skill lets your agent ask Miles directly. It returns the same wallet-aware answer as askmiles.ai in one call. Read-only, always. Paste this instruction into your agent.
Fetch https://askmiles.ai/skills/ask-miles.md and install it as the ask-miles skill. Then tell me which one-time authorization I need to complete.Sign-in is a personal API key you mint at Settings → API keys and paste in; the skill walks your agent through it, and through the OAuth alternative if your agent has to reach someone else's account. Or read the file itself at https://askmiles.ai/skills/ask-miles.md. Re-fetch the file at this stable URL to get the latest version.
ClawHub
Install the same skill from ClawHub, OpenClaw's skill registry, or paste the prompt.
clawhub install ask-milesThe registry copy is pinned to a version, so it can lag the file above. The URL above is always current; re-fetch it if the two ever disagree.
Managing
The wallet connection and the skill are separate today; authorizing one does not authorize the other. The wallet connection is a grant: it appears, and can be paused or disconnected, at Settings → Connected AI Apps. So is an OAuth chat grant, if your agent uses one.
Settings → API keys lets you manage personal API keys, check when each was last used, and revoke them. Pausing access with the Connected AI Apps switch also stops a personal API key from authenticating.
Connecting a different AI app? The server URL is the same everywhere: https://mcp.askmiles.ai/mcp. Claude, Codex, and ChatGPT are on Connect.