{"name":"SandBase CLI: Connect Your AI Agent to 2,000+ Models and APIs","description":"SandBase CLI is an open-source command-line interface and local MCP server that supercharges AI agents. It connects 25 popular AI clients, such as Claude Code, Cursor, and ChatGPT, to over 2,000 AI models and APIs, simplifying complex integrations. This powerful tool streamlines AI agent development by offering a unified gateway, removing the hassle of API key management and configuration.","github":"https://github.com/sandbaseai/cli","url":"https://osrepos.com/repo/sandbaseai-cli","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/sandbaseai-cli","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/sandbaseai-cli.md","json":"https://osrepos.com/repo/sandbaseai-cli.json","topics":["AI Agents","CLI","LLM","AI Gateway","Model Context Protocol","TypeScript","AI Coding","Multimodal AI"],"keywords":["AI Agents","CLI","LLM","AI Gateway","Model Context Protocol","TypeScript","AI Coding","Multimodal AI"],"stars":null,"summary":"SandBase CLI is an open-source command-line interface and local MCP server that supercharges AI agents. It connects 25 popular AI clients, such as Claude Code, Cursor, and ChatGPT, to over 2,000 AI models and APIs, simplifying complex integrations. This powerful tool streamlines AI agent development by offering a unified gateway, removing the hassle of API key management and configuration.","content":"## Introduction\n\nThe `@sandbaseai/cli` is an open-source command-line interface and local Model Context Protocol (MCP) server designed to supercharge your AI agents. It provides a seamless bridge, connecting 25 popular AI clients, including Claude Code, Cursor, Codex, ChatGPT, Hermes, and OpenClaw, to an expansive ecosystem of over 2,000 AI models and APIs. This powerful tool simplifies complex integrations with features like OAuth and automatic rollback, ensuring a secure and reliable connection.\n\nTraditionally, AI coding assistants are limited to their native capabilities, unable to browse the web, interact with social media, generate images, or fetch real-time data without manual API integration. SandBase CLI revolutionizes this by offering a unified command to connect your agent to a vast array of AI models and APIs via the [Model Context Protocol (MCP)](https://modelcontextprotocol.io){target=\"_blank\"}.\n\n## Why Use It & Key Benefits\n\nSandBase CLI addresses common pain points in AI agent development, offering significant advantages:\n\n*   **Simplified Integration**: Connect to 2,000+ AI models and APIs with a single command, eliminating the need to manage individual API keys or complex configurations.\n*   **Broad Client Compatibility**: Supports 25 AI clients, ensuring your preferred coding assistant or agent can leverage its capabilities.\n*   **Verifiable Agent Workflow**: Guides your agent through a structured process for discovering, inspecting, and running models. This includes tools like `sandbase_discover` to find suitable models, `sandbase_inspect` to check schemas and pricing, and `sandbase_run` to execute tasks.\n*   **Enhanced Security**: Implements robust security measures such as OAuth Device Flow with PKCE, restricted file permissions for credentials, automatic rollback on errors, and the ability to revoke access anytime via the [SandBase Dashboard](https://sandbase.ai/console/keys){target=\"_blank\"}.\n*   **Open-Source Ecosystem**: Part of a larger open-source stack, including [SandBase Harness](https://github.com/sandbaseai/sandbase-harness){target=\"_blank\"} for self-hosted agent runtime and [SandBase Agent Skills](https://github.com/sandbaseai/sandbase-skills){target=\"_blank\"} with 88 installable skills.\n\n## Installation\n\nGetting started with SandBase CLI is straightforward.\n\nYou can use `npx` for a quick connection:\n\nsh\nnpx -y https://github.com/sandbaseai/cli/releases/download/v0.1.17/sandbaseai-cli-0.1.17.tgz connect\n\n\nAlternatively, install the official Homebrew formula on macOS or Linux:\n\nsh\nbrew install sandbaseai/tap/sandbaseai-cli\nsandbase connect\n\n\nOnce connected, your agent gains immediate access to the extensive SandBase ecosystem.\n\n## Examples\n\nSandBase CLI provides a clear, verifiable workflow for your AI agent. After connecting, instruct your agent to follow these steps:\n\n1.  Use `sandbase_discover` to search for suitable models or APIs.\n2.  Use `sandbase_inspect` to review input schema, current prices, and requirements.\n3.  Confirm the endpoint, parameters, and potential costs before executing `sandbase_run`.\n4.  Track asynchronous calls with `sandbase_run_get` using the returned `run_id`.\n5.  Check the status and accrued costs of recently executed calls with `sandbase_runs`.\n6.  Verify your current account balance with `sandbase_account`.\n\nFor instance, you can begin with a non-billable search query:\n\n> Find image models for a square product illustration. Compare inputs and current prices of the two best candidates. Do not execute any model yet.\n\nHere are some core commands:\n\nsh\nsandbase connect [--client <name>]    # Authorize + configure\nsandbase doctor [--client <name>]     # Health check\nsandbase unregister [--client <name>] # Remove configuration\nsandbase catalog --json               # List supported clients\n\n\nAnd the MCP tools available after connection:\n\n| Tool                | Purpose                                      |\n| :------------------ | :------------------------------------------- |\n| `sandbase_discover` | Browse 2,000+ models and APIs                |\n| `sandbase_inspect`  | Retrieve schema, pricing, and template       |\n| `sandbase_run`      | Execute model or API                         |\n| `sandbase_run_get`  | Query status of asynchronous tasks           |\n| `sandbase_runs`     | View recent API calls and costs              |\n| `sandbase_account`  | Check account balance (free)                 |\n\n## Links\n\n*   **GitHub Repository**: [sandbaseai/cli](https://github.com/sandbaseai/cli){target=\"_blank\"}\n*   **Official MCP Registry**: [View on Registry](https://registry.modelcontextprotocol.io/v0.1/servers/io.github.sandbaseai%2Fcli/versions/0.1.17){target=\"_blank\"}\n*   **SandBase Dashboard**: [Manage Keys](https://sandbase.ai/console/keys){target=\"_blank\"}\n*   **Practical Guide**: [Claude Code and Codex: discover, price, and run](https://github.com/sandbaseai/cli/discussions/53){target=\"_blank\"}\n*   **Create a Free Account**: [SandBase AI](https://sandbase.ai){target=\"_blank\"}","metrics":{"detailViews":3,"githubClicks":1},"dates":{"published":null,"modified":"2026-09-04T16:48:12.000Z"}}