Grok 4.7 as a coding agent in your terminal
Grok 4.7 by xAI, one of 250+ models you can use in Darce, the open source AI coding agent you can undo.
| Model | Grok 4.7 |
|---|---|
| Vendor | xAI |
| Model id | x-ai/grok-4.7 |
| Context window | 500k tokens |
| Price per 1M tokens | $2.00 input · $6.00 output (OpenRouter) |
| Can do | tool calling · reads images · reasoning |
| Category | Reasoning |
Strengths
xAI's Grok 4.7 with a 500k context. A reasoning-focused option from another vendor, useful for /derby and /critic.
OpenRouter's description:
Grok 4.7 is SpaceXAI's flagship model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. It is particularly strong at long-running software engineering tasks, verifying its own work, and...
Use Grok 4.7 as a coding agent in your terminal
Start Darce in your project with Grok 4.7:
npm install -g darce-cli
darce --model x-ai/grok-4.7Already in a session? Type /model x-ai/grok-4.7, or open the picker with Ctrl+P. Darce then reads your code, edits files and runs commands with Grok 4.7; risky commands ask first, and /undo reverses any change, including what shell commands did. No account yet? npx darce-cli lets you try it free. Which plan includes which models is on the pricing page.
Make it your default or a gear
In ~/.darcerc, set it as the starting model or add it to the gears you move between with Shift+↑ / Shift+↓ (see configuration):
{
"router": { "default": "x-ai/grok-4.7" },
"gears": ["qwen/qwen3-coder", "x-ai/grok-4.7"]
}Compare it on your own code
Benchmarks rarely match your repository. Race Grok 4.7 against two other models on a real task and keep the best diff:
/derby --models x-ai/grok-4.7,x-ai/grok-build-0.1,anthropic/claude-opus-5.5 fix the failing testRead more about /derby and /swarm.
Related models
- Grok Build 0.1 (xAI): 256k tokens, $1.00 / $2.00 per 1M tokens
- Claude Opus 5.5 (Anthropic): 1M tokens, $4.00 / $20.00 per 1M tokens
- Claude Fable 5.1 (Anthropic): 1M tokens, $10.00 / $50.00 per 1M tokens
- Claude Opus 5 (Anthropic): 1M tokens, $5.00 / $25.00 per 1M tokens
- GPT-6 Sol (OpenAI): 1.05M tokens, $2.00 / $10.00 per 1M tokens
All models · Getting started · Claude Code alternative
Model data from OpenRouter, refreshed daily. Prices are OpenRouter's list rates and show relative cost; your Darce allowance is used in proportion to them.