How to Use Command R7B (12-2024) in Gemini CLI
Command R7B (12-2024) handles document Q&A, summaries, and code assistance. Its 128,000-token context supports long inputs, while replies are capped at 4,000 tokens.
Prompts to try with Command R7B (12-2024) in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use Command R7B (12-2024) to explain the authentication flow in this project's source files. Cite file paths and function names, distinguish observed behavior from assumptions, and keep the explanation under 600 words.
Use Command R7B (12-2024) with low temperature to draft a PostgreSQL query from this project's schema. Find customers with no orders in the last 90 days, explain the joins, and flag any missing schema details before guessing.
Use Command R7B (12-2024) to translate the selected JavaScript utility into Python. Preserve its documented behavior, use the existing test examples as checks, and return one function plus a short explanation.
Use Command R7B (12-2024) to answer onboarding questions from the project's README and documentation. Select relevant excerpts of roughly 100 to 400 words, cite their file paths, and say when the documentation does not answer a question.
Use Command R7B (12-2024) to categorize the TODO comments in this repository as bug, documentation, refactor, or uncertain. Return each comment with its path, category, and a one-sentence reason.
How to set up Command R7B (12-2024) in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Command R7B (12-2024)
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "openrouter", "model": "cohere/command-r7b-12-2024", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Gemini CLI finds Command R7B (12-2024) on Spiral, shows the price and runs it.
Command R7B (12-2024) providers and prices
Spiral runs Command R7B (12-2024) through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.000783 per run at the default inputs. $0.04875 per 1M input tokens, $0.195 per 1M output tokens.
Settings you can ask for
Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | ||
| Top k | a whole number from 0 | ||
| Top p | 0 to 1 | ||
| Max tokens | 1 to 4000 | The most output tokens to generate. | |
| Temperature | 0 to 2 | ||
| Presence penalty | -2 to 2 | ||
| Frequency penalty | -2 to 2 |
Every API field of Cohere: Command R7B (12-2024) is on its tool page: open its card above.
What can you do with Command R7B (12-2024) in Gemini CLI?
Turn project code and documentation into explanations, SQL drafts, and small code rewrites with Command R7B. Supply relevant files and expected behavior, and keep each requested change small enough for its 4,000-token output limit.
Answer policy questions
Give Command R7B labeled policy excerpts and ask for an answer tied to those sources. Request a list of missing details when the policy does not resolve the question.
Summarize meeting transcripts
Turn a text transcript into decisions, action items, and open questions. Ask Command R7B to preserve stated owners and deadlines without filling in missing ones.
Extract contract details
Ask Command R7B to pull renewal dates, notice periods, and named parties from contract text. Include an exact supporting excerpt for each extracted value.
Translate support replies
Use Command R7B to translate support text between its trained languages. Supply a glossary and require product names, dates, and reference numbers to remain unchanged.
Categorize customer requests
Give Command R7B a fixed set of categories and short definitions, then ask it to label incoming requests. Include an uncertain category for messages that do not clearly fit.
Draft SQL from a schema
Provide table definitions and ask Command R7B for a query with its assumptions. Specify the SQL dialect and request an explanation of joins and filters.
Explain or translate code
Ask Command R7B to explain a function or translate a small routine into another programming language. Supply expected behavior and examples to check against the result.
Prepare a document digest
Use Command R7B to summarize supplied document excerpts into a short briefing. Ask for source labels beside each point and separate unresolved questions from reported facts.
More on Command R7B (12-2024) and Gemini CLI
Overview
Command R7B (12-2024) in other agents
Questions about Command R7B (12-2024) in Gemini CLI
Can Gemini CLI use Command R7B (12-2024)?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Command R7B (12-2024) like any built-in tool.
How much does Command R7B (12-2024) cost in Gemini CLI?
Up to $0.000783 per run at the default inputs. $0.04875 per 1M input tokens, $0.195 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.
Do I need an OpenRouter account to use Command R7B (12-2024) in Gemini CLI?
No. Spiral runs Command R7B (12-2024) on its own OpenRouter account. You sign in to Spiral once and never paste a key.
How long does it take to set up Command R7B (12-2024) in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Command R7B (12-2024) runs?
Command R7B (12-2024) runs in the background. Gemini CLI starts the run, checks on it and gives you the text, json when it's ready.
What is Command R7B good at?
Use it to answer questions from supplied documents, summarize text, extract details, translate, and categorize content. Cohere also identifies code assistance as a suitable use.
How much text can Command R7B handle?
It has a 128,000-token context window and can generate up to 4,000 tokens per response. For a long report, request separate sections so each reply fits the output limit.
Which languages does Command R7B support?
It was trained on 23 languages, including English, French, Spanish, German, Japanese, Korean, Arabic, Chinese, and Hindi. Specify the output language and identify any names or technical terms that should stay unchanged.
How should I prepare documents for Command R7B?
Cohere recommends short document snippets of roughly 100 to 400 words for grounded generation. Give each excerpt a source label, ask a specific question, and request an explicit statement when the excerpts lack the answer.
Can Command R7B help with SQL and code?
Yes. Cohere describes SQL, code translation, snippets, explanations, and rewrites as supported uses, and recommends low temperature for code generation.
Start using Command R7B (12-2024) in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


