For AI agents: a documentation index is available at /llms.txt. Markdown versions of all documentation pages are available by appending .md to the URL path.

Client Integrations

Visa CLI runs a local MCP server. Install the CLI, complete setup, then run visa-cli install <client> to register it with the client that will use paid tools — that writes the correct config automatically. The manual config blocks below show the equivalent entry; replace <npm root -g> with the path printed by npm root -g.

Install The CLI

macOS and Linux:

curl -fsSL https://app.visacli.sh/cli | bash

Windows PowerShell:

iwr -useb https://app.visacli.sh/install.ps1 | iex

If the installer cannot run interactive setup, run:

visa-cli setup

Automatic Client Install

The CLI knows the supported client ids:

visa-cli install --list

Install a specific client:

visa-cli install claude
visa-cli install claude-desktop
visa-cli install codex
visa-cli install cursor
visa-cli install windsurf
visa-cli install cline
visa-cli install roo-code
visa-cli install copilot
visa-cli install zed

Restart the client after installing so it reloads MCP servers.

Claude Code

visa-cli install claude

Claude Code users can reconnect an already-open session with /mcp, then select visa-cli and reconnect. The /mcp command belongs inside Claude Code, not Terminal or PowerShell.

Claude Desktop

visa-cli install claude-desktop

Manual config:

{
  "mcpServers": {
    "visa-cli": {
      "command": "node",
      "args": ["<npm root -g>/@visa/cli/dist/mcp-server/index.js"]
    }
  }
}

Restart the Claude desktop app after saving config.

Codex

visa-cli install codex

Manual config:

[mcp_servers.visa-cli]
command = "node"
args = ["<npm root -g>/@visa/cli/dist/mcp-server/index.js"]

If Codex sandboxing blocks ~/.codex/config.toml, run visa-cli install codex from a normal terminal or grant filesystem access.

Cursor

visa-cli install cursor

Manual config:

{
  "mcpServers": {
    "visa-cli": {
      "command": "node",
      "args": ["<npm root -g>/@visa/cli/dist/mcp-server/index.js"]
    }
  }
}

Restart Cursor after installing.

Windsurf

visa-cli install windsurf

Manual config:

{
  "mcpServers": {
    "visa-cli": {
      "command": "node",
      "args": ["<npm root -g>/@visa/cli/dist/mcp-server/index.js"]
    }
  }
}

Restart Windsurf after installing.

Cline

visa-cli install cline

Manual config:

{
  "mcpServers": {
    "visa-cli": {
      "command": "node",
      "args": ["<npm root -g>/@visa/cli/dist/mcp-server/index.js"]
    }
  }
}

Restart VS Code after installing.

Roo Code

visa-cli install roo-code

Manual config:

{
  "mcpServers": {
    "visa-cli": {
      "command": "node",
      "args": ["<npm root -g>/@visa/cli/dist/mcp-server/index.js"]
    }
  }
}

Restart VS Code after installing.

VS Code Copilot

visa-cli install copilot

Manual config:

{
  "servers": {
    "visa-cli": {
      "command": "node",
      "args": ["<npm root -g>/@visa/cli/dist/mcp-server/index.js"]
    }
  }
}

Restart VS Code after installing.

Zed

visa-cli install zed

Manual config:

{
  "context_servers": {
    "visa-cli": {
      "source": "custom",
      "command": "node",
      "args": ["<npm root -g>/@visa/cli/dist/mcp-server/index.js"]
    }
  }
}

Restart Zed after installing.

Other MCP Clients

Use this server entry when your client supports generic local MCP servers:

{
  "mcpServers": {
    "visa-cli": {
      "command": "node",
      "args": ["<npm root -g>/@visa/cli/dist/mcp-server/index.js"]
    }
  }
}

If your client uses another key name, keep the same command and args.

Verify

Check local setup:

visa-cli status

If tools do not appear in your client, restart the client or reconnect the MCP server. You can re-run visa-cli install <client> to rewrite the config.

Headless Apps

For backend services and unattended agents, use a scoped Visa Key instead of an MCP client session:

visa-cli keys create my-demo-app --tools or-gpt-4o-mini --daily-cap 5 --total-cap 200

Then call POST /v1/api/tools/:tool/execute with X-Api-Key and an Idempotency-Key. See Visa Key API for the route contract, retry rules, response codes, and key-management APIs.