pai
    Preparing search index...

    Function agentBaseUrl

    • The address Phantom AI serves a coding agent at, from PHANTOM_BASE_URL without its /v1: /claude-code (Claude Code adds /v1 itself), or /codex/v1, /cursor/v1 and /coding-agent/v1 for the others.

      Parameters

      Returns string

      CliError when PHANTOM_BASE_URL is not https (httpsOnly).