pai
    Preparing search index...

    pai

    AI inference for your coding agents

    Connect your agents to Phantom AI. Use routing to choose cheaper models when appropriate, or select models directly. Manage funds and pay for inference from your terminal.

    npm i -g @connortessaro/pai
    pai login
    pai workspace fund --amount 10 --card
    pai codex

    Connect an account or guest workspace by device approval. Run Claude Code, Codex or pi through Phantom AI with temporary configuration, then see what it spent. pai workspace status shows shared funds and recent usage.

    pai login
    pai setup

    Pai previews changes, asks before applying them, then connects supported agents using your saved key. Restart your agent or open a new terminal afterward. pai setup --dry-run previews without writing; pai setup --restore restores backups. Setup for each agent covers automatic setup, Cursor's manual steps and where the key goes.

    For a temporary connection, use pai codex, pai claude or pai pi.

    Install Phantom AI instructions for your coding agent through Vercel Skills:

    npx skills add connortessaro/pai --skill phantom-ai
    

    Read the skill and installation guide. This installs instructions; install the pai CLI separately with the quickstart above.

    Interface reference covers every command, MCP tool, HTTP call and environment variable. The code reference below covers public exports. Use pai --help for the main workflows and pai --help --all for all commands.

    Source, issues and releases.