Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Terminal CLI for ZeroGPU — an ultra-fast, compute-efficient inference provider for apps and agents. Purpose-built small and nano models on an edge network, with zero GPU infrastructure, serverless, and auto-scaling built in.
Jump to setup instructionsFetched from the repository for this visit.
The official command-line interface for ZeroGPU — run fast, edge-optimized inference models (classification, extraction, redaction, chat, summarization) right from your terminal.
npm install -g zerogpu-cli@latest
Requires Node.js 20+.
Verify the install:
zerogpu --version
zerogpu --help
# 1. Sign in (you'll be prompted for your API key)
zerogpu login
# 2. Check your session
zerogpu status
# 3. Run your first command
zerogpu summarize "ZeroGPU runs small, fast models at the edge so you can ship AI features without managing GPUs."
Every inference command requires a valid API key. You can provide it in two ways:
zerogpu login — stores the credential in a local config file and exports ZEROGPU_API_KEY to your shell profile.ZEROGPU_API_KEY directly (useful for CI).Get your API key (zgpu-api-…) from the ZeroGPU dashboard.
All commands follow the pattern:
zerogpu <command> [arguments] [options]
Run zerogpu <command> --help for command-level help.
loginSign in to ZeroGPU. Prompts for your API key (masked input), validates it, and persists the credential.
zerogpu login
zerogpu login --api-key zgpu-api-xxxxxxxx
| Option | Description |
|---|---|
--api-key <key> | Provide the API key directly (skips the prompt). |
statusCheck whether you're signed in and where the API key was loaded from.
zerogpu status
chatChat with a ZeroGPU text-generation model. Defaults to LFM2.5-1.2B-Instruct; use --model to reach for a larger reasoning model.
zerogpu chat "Explain edge inference in one sentence."
zerogpu chat "Translate to French: Good morning." -i "You are a precise translator."
# Frontier-grade reasoning, with the trace printed alongside the answer
zerogpu chat "Why does my API keep getting rate-limited?" -m gpt-oss-120b -r
# Multilingual reasoning
zerogpu chat "Explique la mise en cache en une phrase." -m qwen3-30b-a3b-fp8
| Option | Description |
|---|---|
-i, --instructions <text> | System instructions that steer the assistant's behavior. |
-m, --model <model> | Model to use (default LFM2.5-1.2B-Instruct). |
-r, --reasoning | Also print the reasoning trace, for models that return one. |
| Model | Notes |
|---|---|
LFM2.5-1.2B-Instruct | Default. Fast edge chat. |
LFM2.5-1.2B-Thinking | Compact reasoning model. |
gpt-oss-120b | 120B MoE, 131K context, reasoning + function calling. |
llama-guard-4-12b | 12B dense, 164K context, brand safety + text moderation. |
deepseek-v4.1-flash | Sparse MoE (8B active on input, 16B on output), 1M context, long-context agentic work + function calling. |
glm-5.3-flash | 1M context, coding and long-horizon agent work + function calling. |
gpt-4.1-mini | 1M context, coding + function calling, with structured outputs. |
gpt-6-luna | 272K context, reasoning + function calling, text and image input. |
gpt-5.6-luna | 272K context, cost-optimized reasoning + function calling. |
gpt-5.4-nano | 400K context, classification, extraction, and routing + function calling. |
qwen3.6-35b-a3b | 35B MoE, 16K context, multimodal chat — document, image, and video analysis + data extraction. |
zlm-v1-tool-decisions | 0.6B, 24K context, MCP tool selection and argument generation for agents. |
qwen3-30b-a3b-fp8 | 30B MoE, 100+ languages, reasoning + function calling. |
qwen3-30b-a3b-fp8 is served by the Chat Completions API rather than the Responses API; the CLI routes it automatically.
chat_thinkingChat with the LFM2.5-1.2B-Thinking model, which returns reasoning alongside its answer.
zerogpu chat_thinking "If a train leaves at 3pm at 60mph, when does it arrive 180 miles later?"
summarizeSummarize text with the llama-3.1-8b-instruct-fast model.
zerogpu summarize "Long article text goes here..."
classify_iabClassify text against the IAB audience and content taxonomy using the ZeroGPU IAB edge model.
zerogpu classify_iab "Tips for first-time homebuyers in 2026."
classify_iab_enrichedSame as classify_iab but returns enriched output: audience, topics, keywords, and intent.
zerogpu classify_iab_enriched "Best running shoes for marathon training."
classify_domainClassify a domain name against the IAB taxonomy using the ZeroGPU domain edge model. Takes only the hostname — no page fetch or body text — so it suits bidstream enrichment and inventory-level targeting.
zerogpu classify_domain nytimes.com
Returns scored content categories plus topics, keywords, and inferred user intent for the domain. When you have the page text and need per-URL precision, use classify_iab instead.
classify_zero_shotZero-shot classification against arbitrary candidate labels using DeBERTa v3.
# Repeat --label for each candidate
zerogpu classify_zero_shot "The stock market dropped 3% today." \
--label finance --label sports --label politics
# Or pass them as a comma-separated list
zerogpu classify_zero_shot "The stock market dropped 3% today." \
--labels finance,sports,politics
| Option | Description |
|---|---|
-l, --label <label> | Candidate label (repeatable). |
--labels <a,b,c> | Comma-separated list of candidate labels. |
Call a ZeroGPU API endpoint directly, with any model. These commands keep no model list: the model you pass is sent as-is, so a model the platform adds or renames works without a CLI update. They are the stable surface the ZeroGPU agent plugins build on.
Text comes from the positional argument, or from stdin when there isn't one, which keeps very large prompts off the command line.
| Option | Applies to | Description |
|---|---|---|
-m, --model <model> | all | Required. Model id, sent exactly as given. |
-i, --instructions <text> | responses, chat_completions | responses: the instructions field. chat_completions: a system message ahead of the text. |
--metadata <json> | responses, chat_completions | JSON object sent as metadata — the per-model options such as usecase, labels, schema, threshold. |
--body <json> | all | Extra top-level request fields, e.g. '{"max_output_tokens":256}'. Fields set by the other options take precedence. |
--raw | responses, chat_completions | Print the full API response instead of only the model's text. |
responses and chat_completions print the model's text, pretty-printed when it is JSON. moderations and embeddings print the full response. Every call is recorded for cost_savings, like the task commands.
responsesPOST to /v1/responses.
zerogpu responses "Email John Smith at john@acme.com." -m gliner2.5-multi-v1 \
--metadata '{"usecase":"redact","mask":"label"}'
# Long input from a file, on stdin
zerogpu responses -m gpt-oss-120b -i "Summarize this report." < report.txt
chat_completionsPOST to /v1/chat/completions. Also available as chat-completions.
zerogpu chat_completions "Explique la mise en cache en une phrase." -m qwen3-30b-a3b-fp8
zerogpu chat_completions "The app uses Python 3.11 and PostgreSQL 15." -m gliner2.5-base-v1 \
--metadata '{"usecase":"ner","labels":["programming language","database"],"threshold":0.3}'
moderationsPOST to /v1/moderations.
zerogpu moderations "Screen this comment before we publish it." -m zlm-v1-moderation-edge
embeddingsPOST to /v1/embeddings.
zerogpu embeddings "ZeroGPU runs small models at the edge." -m all-minilm-l6-v2
| Variable | Purpose |
|---|---|
ZEROGPU_API_KEY | Overrides the API key from the config file. Set automatically by zerogpu login for your default shell. |
0 on success and 1 on failure — safe to use in pipelines and scripts.Example:
zerogpu classify_iab "Tips for first-time homebuyers." > result.json
You're not fully signed in yet. Run zerogpu login again, or check zerogpu status.That doesn't look like a valid API key Keys must start with zgpu-api-.ZEROGPU_API_KEY not picked up in a new shell: open a new terminal, or source your shell config file (the login command prints the path).Issues and pull requests are welcome. See CONTRIBUTING.md and our Code of Conduct.
Security concerns? See SECURITY.md.
git clone https://github.com/zerogpu/cli.git
cd cli
npm install
npm run build
npm test
Released under the MIT License.
GitHub checked 39h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.