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

Muse Code · LLMReleased 2026-07-08

How to Use Grok 4.5 in Muse Code

Grok 4.5 suits repository debugging, technical analysis, and tasks that require several tool calls. Its scope extends beyond coding to data science and business writing.

Prompts to try with Grok 4.5 in Muse Code

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

Use Grok 4.5 with high reasoning effort to investigate this repository's failing tests. Find the cause, make the smallest suitable patch, and add a regression test.

Grok 4.5Muse Code
Try asking
  • Use Grok 4.5 to inspect the Rust compiler errors in this project. Fix the ownership issue while preserving the public interface, then run the relevant tests.

  • Use Grok 4.5 to investigate this project's C++ crash. Trace object lifetimes, propose a correction, and verify it with the available sanitizer or test tooling.

  • Use Grok 4.5 to build a working prototype from this project's requirements. Follow existing conventions and verify each acceptance criterion before reporting completion.

  • Use Grok 4.5 with medium reasoning effort to compare this repository's two proposed migration approaches. Cite affected code and recommend a staged plan with validation checks.

How to set up Grok 4.5 in Muse Code

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

Use Spiral's MCP server

  1. Install Muse Code
    curl -fsSL https://dev.meta.ai/install.sh | bash
  2. Ask Muse to add the server

    Start muse and ask:

    Add the Spiral MCP server at https://api.spiral.ai/mcp
  3. Sign in

    In your terminal, run:

    muse mcp login spiral

Use the Spiral skill

  1. Send Muse Code 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 Grok 4.5

    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": "x-ai/grok-4.5",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Muse Code finds Grok 4.5 on Spiral, shows the price and runs it.

Grok 4.5 providers and prices

Spiral runs Grok 4.5 through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
SpaceXAI: Grok 4.5
x-ai/grok-4.5

Settings you can ask for

Ask Muse Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number
Top pa number up to 1
Max tokens1 to 450000

The most output tokens to generate.

Temperature0 to 2
Reasoning effortlow, medium, or highhigh

How much the model reasons.

Every API field of SpaceXAI: Grok 4.5 is on its tool page: open its card above.

What can you do with Grok 4.5 in Muse Code?

Turn repository problems into tested patches with Grok 4.5. Use it to investigate causes, work through technical changes, and check whether the result meets your acceptance criteria.

Fix repository bugs

Ask Grok 4.5 to trace a failing behavior through the code, propose a patch, and verify it against a regression test.

Debug Rust and C/C++

Give Grok 4.5 a compiler error and the relevant code. Request a correction that preserves the intended ownership rules or memory behavior.

Build an application prototype

Turn a defined workflow into a working application with explicit acceptance criteria. Have Grok 4.5 check the main user path before reporting completion.

Investigate data anomalies

Have Grok 4.5 compare reported figures, identify inconsistencies, and propose calculations that distinguish competing explanations.

Extract document records

Turn supplied text into structured records with Grok 4.5. Specify required values, evidence excerpts, and how to mark missing information.

Draft business presentations

Give Grok 4.5 the approved findings and ask for slide titles, supporting evidence, and speaker notes for a defined audience.

Compare technical proposals

Ask Grok 4.5 to compare approaches against explicit engineering constraints, expose assumptions, and identify the tests needed to make a decision.

Produce recurring analytical reports

Have Grok 4.5 turn each run's supplied observations into a consistent report of changes, evidence, unresolved questions, and next actions.

Questions about Grok 4.5 in Muse Code

Can Muse Code use Grok 4.5?

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Grok 4.5 like any built-in tool.

How much does Grok 4.5 cost in Muse Code?

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

Do I need an OpenRouter account to use Grok 4.5 in Muse Code?

No. Spiral runs Grok 4.5 on its own OpenRouter account. You sign in to Spiral once and never paste a key.

How long does it take to set up Grok 4.5 in Muse Code?

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

Does Muse Code wait while Grok 4.5 runs?

Grok 4.5 runs in the background. Muse Code starts the run, checks on it and gives you the text, json when it's ready.

What is Grok 4.5 best suited for?

Use it for software engineering and analytical work that requires several steps, including debugging, data analysis, and comparing technical approaches. Give it a concrete deliverable and a way to check the result.

How much context can Grok 4.5 handle?

The maker lists a 500,000-token context window. For a large task, identify the relevant sections and the exact question you want answered.

How should I choose the reasoning effort?

Start with low for straightforward work, medium for analysis, and high for difficult debugging or mathematical problems. Grok 4.5 defaults to high and always uses reasoning.

Can Grok 4.5 produce structured records?

Yes. Document extraction and report generation are useful applications: define the record you need and tell it how to represent missing information.

How do I prompt Grok 4.5 effectively?

State the task, constraints, and desired output directly. For example, ask for a patch that preserves a public interface, includes a regression test, and explains the cause in three sentences.

Get started

Start using Grok 4.5 in Muse Code

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

Paste this into Muse Code:

Set up Muse Code

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