[Integrations](https://spiral.ai/integrations) › [Raycast](https://spiral.ai/integrations/raycast) › [Devstral 2](https://spiral.ai/integrations/raycast/devstral-2)

# How to Use Devstral 2 in Raycast

Devstral 2 is built for bug fixes and coordinated changes across multiple files. Its 256K context window suits coding tasks that need substantial repository context.

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

## Prompts to try with Devstral 2 in Raycast

- Use Devstral 2 to review the code and stack trace pasted in this conversation. Explain the most likely failure path, propose a minimal correction, and give a test that would distinguish your diagnosis from alternatives.
- Use Devstral 2 to explain the pasted request handler and database code. Trace one successful request and one rejected request, then identify any mismatch between validation and persistence.
- Use Devstral 2 to refactor the pasted functions that duplicate date parsing. Preserve their documented behavior and show tests for invalid dates, empty input, and time zone boundaries.
- Use Devstral 2 to compare the two implementations pasted above. Focus on behavior, error handling, and compatibility; support each finding with a specific code excerpt.
- Use Devstral 2 with randomness set to 0.2 to turn the pasted bug report into a debugging plan. List what the evidence establishes, what remains uncertain, and the next experiment for each uncertainty.

## How to set up Devstral 2 in Raycast

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

### Use the Raycast connector

1. **Install the server**: In Raycast run Install MCP Server. Name it Spiral, set Transport to HTTP, paste this URL and keep OAuth Type on Dynamic:

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Spiral opens in your browser: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Raycast never sees it, and you can remove it under Settings › Connected apps in the console.

### Use the Spiral skill

1. **Send Raycast 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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Devstral 2**: 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": "mistralai/devstral-2512",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Raycast finds Devstral 2 on Spiral, shows the price and runs it.

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

## Devstral 2 tools and prices

- [Mistral: Devstral 2 2512](https://spiral.ai/tools/openrouter/mistralai/devstral-2512) (OpenRouter): Up to $0.010668 per run at the default inputs. $0.52 per 1M input tokens, $2.60 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| tools |  | — |  |
| top_p | 0 to 1 | — |  |
| max_tokens | 1 to 209715 | — | The most output tokens to generate. |
| temperature | 0 to 2 | — |  |

## What can you do with Devstral 2 in Raycast?

Devstral 2 can turn pasted code and error output into a focused debugging discussion. Ask for explanations and proposed changes tied to the evidence you provide.

### Fix bugs across application layers

Use Devstral 2 to trace a reported failure through validation, business logic, and persistence, then propose a focused fix with a regression test.

### Refactor a shared interface

Ask Devstral 2 to update an interface and its callers together, preserving existing behavior and identifying tests affected by the change.

### Plan a legacy code migration

Give Devstral 2 the current implementation and target requirements. Request incremental changes, compatibility checks, and a rollback plan.

### Explain an unfamiliar codebase

Use Devstral 2 to trace a request through supplied code and explain the responsibilities, dependencies, and failure paths along the way.

### Investigate failing tests

Provide Devstral 2 with failure output and relevant code. Ask for the likely cause, the evidence supporting it, and a testable correction.

### Review a coordinated code change

Ask Devstral 2 to review related changes together, checking whether callers, validation rules, and tests still agree on the expected behavior.

## Overview

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

## Devstral 2 in other agents

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

## More Raycast guides

- [DeepSeek V4.1 Flash 1017 (batch)](https://spiral.ai/integrations/raycast/deepseek-v4-1-flash-1017-batch)
- [ERNIE-Light-DT-1.0](https://spiral.ai/integrations/raycast/ernie-light-dt-1-0)
- [DeepSeek V4.1 Flash 1017](https://spiral.ai/integrations/raycast/deepseek-v4-1-flash-1017)
- [Elorian Glimpse](https://spiral.ai/integrations/raycast/elorian-glimpse)
- [DeepSeek V4.1 Flash](https://spiral.ai/integrations/raycast/deepseek-v4-1-flash)
- [Ember-1](https://spiral.ai/integrations/raycast/ember-1)

## Questions about Devstral 2 in Raycast

**Can Raycast use Devstral 2?**

Yes. Add Spiral to Raycast as an MCP server, and Raycast can find and run Devstral 2 like any built-in tool.

**How much does Devstral 2 cost in Raycast?**

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

**Do I need an OpenRouter account to use Devstral 2 in Raycast?**

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

**How long does it take to set up Devstral 2 in Raycast?**

About two minutes: install the server, then sign in to Spiral and approve.

**Does Raycast wait while Devstral 2 runs?**

Devstral 2 runs in the background. Raycast starts the run, checks on it and gives you the text, json when it's ready.

**What is Devstral 2 best suited for?**

Devstral 2 targets software engineering: exploring codebases, fixing bugs, and coordinating edits across multiple files. Use it for tasks that require understanding how several parts of an application fit together.

**How much context can Devstral 2 handle?**

Mistral specifies a 256K context window. Treat that as a context limit, not a promise that one response can contain 256K tokens of generated code.

**What temperature should I use for coding?**

Mistral recommends 0.2. Use that as a starting point when evaluating bug fixes and code changes against your own tests.

**How should I prompt Devstral 2?**

Give it a concrete task, relevant code, expected behavior, and an example of the desired result. For a long change, ask it to divide the work into steps and report how each step was checked.

**Where does Devstral 2 fall short?**

Mistral reports that Claude Sonnet 4.5 remained significantly preferred in its human evaluation through Cline. Review proposed changes and test them against the behavior you need.

