[Integrations](https://spiral.ai/integrations) › [OpenClaw](https://spiral.ai/integrations/openclaw) › [Grok 4.20](https://spiral.ai/integrations/openclaw/grok-4-20)

# How to Use Grok 4.20 in OpenClaw

Grok 4.20 fits document analysis, coding, and questions that require several logical steps. Enable reasoning for difficult problems; disable it for straightforward extraction or routine Q&A.

|  |  |
| --- | --- |
| Model | Grok 4.20 |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.01337 per run at the default inputs. $1.625 per 1M input tokens, $3.25 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Grok 4.20 in OpenClaw

- Every weekday, use Grok 4.20 to summarize the operational updates supplied for the previous 24 hours. Return decisions, blockers, and next actions with source references; leave an owner unspecified when none is stated.
- Each week, use Grok 4.20 with reasoning enabled to compare the supplied product announcements with the previous week's summary. Report substantive changes, supporting dates, and unresolved questions in under 600 words.
- Each morning, use Grok 4.20 to extract order details from the newly supplied message text. Return consistent JSON records, preserve stated quantities, and mark missing values rather than inferring them.
- Every Friday, use Grok 4.20 to summarize the supplied English and Spanish customer feedback. Keep a source reference for each theme, include contradictory feedback, and draft the report in English.
- Each week, use Grok 4.20 with reasoning enabled to review the supplied migration status updates against the stated acceptance criteria. Identify unmet dependencies, rollback gaps, and evidence needed before the next milestone.

## How to set up Grok 4.20 in OpenClaw

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

### Use the Spiral skill

1. **Send OpenClaw 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 Spiral's MCP server

1. **Add the server**: On the machine that runs OpenClaw's Gateway:

```bash
openclaw mcp add spiral \
  --url https://api.spiral.ai/mcp \
  --transport streamable-http \
  --auth oauth
```

2. **Sign in**: In Settings › MCP, select Sign in on the Spiral server, sign in to Spiral and click Authorize. No API key.

```bash
openclaw mcp login spiral
```

3. **Reload and check**: A running Gateway may keep its old tool list: restart it, or Save & Publish in the Control UI.

```bash
openclaw mcp reload
openclaw mcp doctor spiral --probe
```

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
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.20**: One request; the result comes back by polling or a webhook.

```bash
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.20",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: OpenClaw finds Grok 4.20 on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/openclaw

## Grok 4.20 tools and prices

- [SpaceXAI: Grok 4.20](https://spiral.ai/tools/openrouter/x-ai/grok-4.20) (OpenRouter): Up to $0.01337 per run at the default inputs. $1.625 per 1M input tokens, $3.25 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| tools |  | — |  |
| top_p | … to 1 | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |
| max_tokens | 1 to 1800000 | — | The most output tokens to generate. |
| temperature | 0 to 2 | — |  |

## What can you do with Grok 4.20 in OpenClaw?

Grok 4.20 can turn recurring batches of supplied updates into consistent summaries and structured records. Define the reporting window, evidence requirements, and treatment of missing information so each run answers the same questions.

### Compare technical proposals

Ask Grok 4.20 to compare competing proposals against explicit requirements, identify tradeoffs, and cite the passages supporting each conclusion.

### Investigate a software defect

Use Grok 4.20 to trace a reported failure through relevant code, propose a cause, and design a regression test that would distinguish it from other explanations.

### Extract document records

Have Grok 4.20 turn supplied invoice or order text into JSON records, preserving source values and marking missing information explicitly.

### Synthesize research evidence

Give Grok 4.20 dated excerpts and ask for findings, disagreements, and unanswered questions, with a source reference beside each finding.

### Check quantitative reasoning

Ask Grok 4.20 to examine a calculation, identify assumptions, check units, and explain which inputs would change the conclusion.

### Translate support content

Use Grok 4.20 to draft translations in English, Spanish, Chinese, Arabic, or Hindi while preserving product names and a supplied glossary.

### Draft evidence-based reports

Have Grok 4.20 turn supplied operational updates into a report with decisions, unresolved issues, and supporting evidence.

### Review a migration plan

Ask Grok 4.20 to check dependencies, sequence work, identify rollback gaps, and propose acceptance checks against the stated requirements.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All OpenClaw guides](https://spiral.ai/integrations/openclaw)

## Grok 4.20 in other agents

- [Amp](https://spiral.ai/integrations/amp/grok-4-20)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/grok-4-20)
- [Claude](https://spiral.ai/integrations/claude-desktop/grok-4-20)
- [Claude Code](https://spiral.ai/integrations/claude-code/grok-4-20)
- [Cline](https://spiral.ai/integrations/cline/grok-4-20)
- [Codex](https://spiral.ai/integrations/codex/grok-4-20)
- [Cursor](https://spiral.ai/integrations/cursor/grok-4-20)
- [Devin](https://spiral.ai/integrations/devin/grok-4-20)
- [dots](https://spiral.ai/integrations/dots/grok-4-20)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/grok-4-20)
- [Gemini](https://spiral.ai/integrations/gemini/grok-4-20)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/grok-4-20)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/grok-4-20)
- [goose](https://spiral.ai/integrations/goose/grok-4-20)
- [Grok](https://spiral.ai/integrations/grok/grok-4-20)
- [Grok Build](https://spiral.ai/integrations/grok-build/grok-4-20)
- [Hermes](https://spiral.ai/integrations/hermes/grok-4-20)
- [Instinct](https://spiral.ai/integrations/instinct/grok-4-20)
- [Manus](https://spiral.ai/integrations/manus/grok-4-20)
- [Muse](https://spiral.ai/integrations/muse/grok-4-20)
- [Muse Code](https://spiral.ai/integrations/muse-code/grok-4-20)
- [n8n](https://spiral.ai/integrations/n8n/grok-4-20)
- [Notion](https://spiral.ai/integrations/notion/grok-4-20)
- [opencode](https://spiral.ai/integrations/opencode/grok-4-20)
- [Perplexity](https://spiral.ai/integrations/perplexity/grok-4-20)
- [Raycast](https://spiral.ai/integrations/raycast/grok-4-20)
- [VS Code](https://spiral.ai/integrations/vscode/grok-4-20)
- [Windsurf](https://spiral.ai/integrations/windsurf/grok-4-20)
- [Zapier](https://spiral.ai/integrations/zapier/grok-4-20)

## More OpenClaw guides

- [Granite 4.2 8B](https://spiral.ai/integrations/openclaw/granite-4-2-8b)
- [Grok 4.20 Multi-Agent](https://spiral.ai/integrations/openclaw/grok-4-20-multi-agent)
- [Gemma 4 31B](https://spiral.ai/integrations/openclaw/gemma-4-31b)
- [Grok 4.3](https://spiral.ai/integrations/openclaw/grok-4-3)
- [Gemma 4 26B A4B](https://spiral.ai/integrations/openclaw/gemma-4-26b-a4b)
- [Grok 4.5](https://spiral.ai/integrations/openclaw/grok-4-5)

## Questions about Grok 4.20 in OpenClaw

**Can OpenClaw use Grok 4.20?**

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

**How much does Grok 4.20 cost in OpenClaw?**

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

**Do I need an OpenRouter account to use Grok 4.20 in OpenClaw?**

No. Spiral runs Grok 4.20 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.20 in OpenClaw?**

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

**Does OpenClaw wait while Grok 4.20 runs?**

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

**What is Grok 4.20 useful for?**

Grok 4.20 supports research, writing, coding, translation, and reasoning over supplied material. Good starting tasks include comparing technical proposals, explaining unfamiliar code, and turning document text into structured records.

**How much context can Grok 4.20 handle?**

The exact catalog listing reports 2 million tokens, while xAI's model page lists 1 million. These published limits disagree, so use 1 million tokens as a conservative planning ceiling; neither figure promises an answer of that length.

**Which languages does Grok 4.20 support?**

xAI names English, Chinese, Arabic, Hindi, and Spanish, plus several dozen others. Capability varies by language, so review terminology and meaning before publishing a translation.

**How should I prompt Grok 4.20?**

State the task, constraints, and required output directly. For example, ask for a comparison of three proposals using named criteria, a word limit, and a separate list of missing evidence.

**Which settings are worth testing first?**

Compare reasoning enabled and disabled on representative tasks. For sampling, xAI recommends temperature 0.7 and top-p 0.95; use those as a starting point.

