Spiral gives your agent every tool with one account. Browse the tools →

opencode · LLMReleased 2024-08-30

How to Use Command R Plus (08-2024) in opencode

Use Command R+ (08-2024) for document-based answers, multilingual summaries, and tasks that need several tool calls. Compared with Command R+ (04-2024), it improves decisions about which tool to use and whether a tool is needed.

Prompts to try with Command R Plus (08-2024) in opencode

Copy an example into opencode, or ask in your own words.

Use Command R+ (08-2024) to explain the authentication flow in this project's source files. Cite file paths and function names, identify assumptions, and keep the explanation under 700 words.

Command R Plus (08-2024)opencode
Try asking
  • Use Command R+ (08-2024) to rewrite the project's date-parsing helper for clarity while preserving its documented behavior. Read the existing tests first, return a focused patch, and identify any behavior the tests leave unspecified.

  • Use Command R+ (08-2024) to answer questions about retry behavior using the README, configuration code, and tests. Reference the exact evidence for each answer and flag contradictions.

  • Use Command R+ (08-2024) to turn the project's release notes into a migration checklist. Show the source entry for each required change and keep the checklist under 600 words.

  • Use Command R+ (08-2024) to extract the project's error messages into a review table. Include the triggering condition, source location, and a clearer proposed message; follow the wording conventions already used in the project.

How to set up Command R Plus (08-2024) in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. Run Command R Plus (08-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-r-plus-08-2024",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: opencode finds Command R Plus (08-2024) on Spiral, shows the price and runs it.

Command R Plus (08-2024) providers and prices

Spiral runs Command R Plus (08-2024) through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Cohere: Command R+ (08-2024)
cohere/command-r-plus-08-2024

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Top ka whole number from 0
Top p0 to 1
Max tokens1 to 4000

The most output tokens to generate.

Temperature0 to 2
Presence penalty-2 to 2
Frequency penalty-2 to 2

Every API field of Cohere: Command R+ (08-2024) is on its tool page: open its card above.

What can you do with Command R Plus (08-2024) in opencode?

Turn project code and documentation into explanations, focused rewrites, and answers with source references. Give Command R+ (08-2024) explicit tasks and relevant files, since Cohere cautions about pure code completion.

Support answers from policy text

Draft a reply using the relevant help articles and policy excerpts. Request a source reference for each policy claim and flag missing information.

Research across several sources

Use successive searches to identify an organization, retrieve its relevant announcements, and assemble a brief with source links.

Multilingual support summaries

Summarize Spanish, French, or Japanese customer messages in English. Preserve product names and include the original passage behind each reported issue.

Meeting action extraction

Turn a meeting transcript into a table of decisions, owners, and deadlines. Mark owners or dates as unspecified when the transcript leaves them out.

Code explanations and focused rewrites

Explain a function, identify its assumptions, or request a rewrite with explicit behavior requirements. Keep each request focused on a manageable section of code.

Policy comparison

Compare two policy texts and list changed requirements, exceptions, and unanswered questions. Reference the relevant passages from both texts.

Recurring operations briefs

Combine retrieved incident updates and service notices into a short status brief. Separate reported facts from unresolved questions and retain source links.

Questions about Command R Plus (08-2024) in opencode

Can opencode use Command R Plus (08-2024)?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Command R Plus (08-2024) like any built-in tool.

How much does Command R Plus (08-2024) cost in opencode?

Up to $0.052115 per run at the default inputs. $3.25 per 1M input tokens, $13.00 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an OpenRouter account to use Command R Plus (08-2024) in opencode?

No. Spiral runs Command R Plus (08-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 R Plus (08-2024) in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while Command R Plus (08-2024) runs?

Command R Plus (08-2024) runs in the background. opencode starts the run, checks on it and gives you the text, json when it's ready.

What is Command R+ (08-2024) useful for?

Use it to answer questions from supplied sources, summarize documents, and handle tasks that need several tool calls. Examples include policy answers with source references and research briefs assembled through successive searches.

How much text can Command R+ (08-2024) handle?

It has a 128,000-token context window and a maximum output of 4,000 tokens. For a long report, request an outline first, then draft sections separately.

Which languages is Command R+ optimized for?

English, French, Spanish, Italian, German, Brazilian Portuguese, Japanese, Korean, Simplified Chinese, and Arabic. State the desired answer language explicitly when your sources use several languages.

Is Command R+ (08-2024) good for coding?

It is designed for requested code snippets, explanations, and rewrites. Cohere cautions that pure code completion may perform poorly, so give it a specific task and the relevant code.

How should I prompt Command R+ for a consistent format?

Describe the task and show an example of the answer you want. Cohere notes that examples in the system prompt may improve generation quality.

Get started

Start using Command R Plus (08-2024) in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options