How to use 2,000+ AI models in Claude Code or Codex—with price checks before every call #47
denial123789
started this conversation in
Show and tell
Replies: 1 comment
|
Practical follow-up: you can preview the supported client targets before changing any configuration: npx -y https://github.com/sandbaseai/cli/releases/download/v0.1.17/sandbaseai-cli-0.1.17.tgz catalog --jsonThen use |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
SandBase CLI gives Claude Code, Codex, Cursor, and 22 other AI client targets a consistent MCP workflow for choosing and calling models or APIs:
This is useful when an agent needs a capability that is not already available through a dedicated tool: another LLM, image or video generation, embeddings, web extraction, social data, or a structured API.
1. Connect the client
Use the pinned v0.1.17 GitHub Release while npm trusted publishing is being enabled:
Approve browser authorization and select the installed client. The CLI installs a local stdio bridge; it does not start a background daemon.
2. Ask the agent to discover candidates
Example prompt:
The agent can narrow the catalog with short queries, endpoint type, vendor, and result limit. SandBase currently exposes more than 2,000 AI models and APIs through this interface.
3. Inspect schema and price before execution
sandbase_inspectreturns the endpoint's input schema, pricing metadata, and request template. This avoids guessing parameter names or committing to a paid call before the user can compare options.4. Run only after choosing
The agent calls
sandbase_runwith the exact endpoint name and schema-valid arguments.For asynchronous work such as video generation, the response includes a run ID. Poll it with
sandbase_run_getrather than starting duplicate jobs:5. Review usage and balance
The six MCP tools are:
sandbase_discover— search models and APIssandbase_inspect— inspect schema, pricing, and request templatesandbase_run— execute a model or APIsandbase_run_get— retrieve an asynchronous resultsandbase_runs— review recent calls and costssandbase_account— check account balanceSafety notes
Resources:
If you try this workflow, share the client and capability you tested—without credentials or private model inputs. If it saves integration time, starring SandBase CLI helps other agent developers discover it.
Disclosure: This is an official SandBase technical walkthrough, drafted with AI assistance and checked against the v0.1.17 source, managed Skill documentation, and release metadata.
All reactions