[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Inkling Small](https://spiral.ai/integrations/opencode/inkling-small)

# How to Use Inkling Small in opencode

Inkling Small suits coding tasks, tool use, and reasoning through detailed instructions. In the maker’s tests, it surpassed Inkling on reasoning and agentic coding, while Inkling retained better knowledge coverage and factuality.

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

## Prompts to try with Inkling Small in opencode

- Use Inkling Small to investigate the failing tests in this project. Reproduce one failure, inspect the relevant code, make a focused fix, and run the affected tests.
- Use Inkling Small to review the current diff against the issue requirements. Report correctness bugs with file locations and a concrete failing example for each.
- Use Inkling Small with higher thinking effort to investigate this intermittent test failure. Compare plausible causes, gather evidence from the project, and propose a regression check.
- Use Inkling Small to compare the current parser with a streaming approach. Inspect the implementation and explain memory use, runtime, and behavior on malformed input before proposing changes.
- Use Inkling Small to turn the project’s feature specification into acceptance checks. Link each check to a requirement and flag ambiguous behavior before editing code.

## How to set up Inkling Small 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

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

### Call the Spiral API

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

2. **Run Inkling Small**: 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": "thinkingmachines/inkling-small",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds Inkling Small on Spiral, shows the price and runs it.

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

## Inkling Small tools and prices

- [Thinking Machines: Inkling Small](https://spiral.ai/tools/openrouter/thinkingmachines/inkling-small) (OpenRouter): Up to $0.006411 per run at the default inputs. $0.585 per 1M input tokens, $1.56 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| min_p | 0 to 1 | — |  |
| tools |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |

## What can you do with Inkling Small in opencode?

Inkling Small can help turn a reproducible failure into a code change and a verification plan. Use project context to make debugging and review requests specific.

### Repair a reproducible bug

Give Inkling Small the failing behavior, relevant code, and expected result. Ask for a focused patch and a regression check.

### Review a code change

Ask Inkling Small to compare an implementation against its requirements and flag specific correctness problems with examples.

### Compare algorithm choices

Have Inkling Small compare two approaches under explicit memory, runtime, and edge-case constraints.

### Answer questions from supplied documents

Provide labeled excerpts and ask Inkling Small to support each answer with a passage, leaving unsupported questions unanswered.

### Turn requirements into acceptance criteria

Ask Inkling Small to turn a product brief into observable checks and identify requirements that need clarification.

### Draft replies from approved guidance

Give Inkling Small a customer message and the relevant policy text. Request a concise reply that makes no unsupported promises.

### Update a forecast

Ask Inkling Small to estimate the probability of a clearly defined event from dated evidence and explain what would change the estimate.

### Rewrite multilingual messages

Use Inkling Small to rewrite a message in a requested language while preserving names, dates, numbers, and the intended tone.

## Overview

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

## Inkling Small in other agents

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

## More opencode guides

- [Inkling 2 Small](https://spiral.ai/integrations/opencode/inkling-2-small)
- [Inkling Small (batch)](https://spiral.ai/integrations/opencode/inkling-small-batch)
- [Inkling 2 Mini](https://spiral.ai/integrations/opencode/inkling-2-mini)
- [Kimi K2 0711](https://spiral.ai/integrations/opencode/kimi-k2-0711)
- [Inkling](https://spiral.ai/integrations/opencode/inkling)
- [Kimi K2 0905](https://spiral.ai/integrations/opencode/kimi-k2-0905)

## Questions about Inkling Small in opencode

**Can opencode use Inkling Small?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Inkling Small like any built-in tool.

**How much does Inkling Small cost in opencode?**

Up to $0.006411 per run at the default inputs. $0.585 per 1M input tokens, $1.56 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 Inkling Small in opencode?**

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

**How long does it take to set up Inkling Small in opencode?**

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

**Does opencode wait while Inkling Small runs?**

Inkling Small runs in the background. opencode starts the run, checks on it and gives you the text, json when it's ready.

**What is Inkling Small good at?**

Coding and reasoning are clear strengths in the maker’s evaluations. Try it for debugging, reviewing an implementation, or working through a specification with several constraints.

**How does Inkling Small compare with Inkling?**

Inkling Small surpassed Inkling on the maker’s reasoning and agentic coding benchmarks. Inkling retained an advantage in knowledge coverage and factuality, so the better choice depends on the task.

**How much context can Inkling Small handle?**

The maker specifies up to 1 million tokens of context. Treat that as context capacity, not a promised answer length, and give the model a focused question about the material.

**Does Inkling Small support languages other than English?**

Yes. The maker describes general multilingual support and support for multiple programming languages; check its output with examples from your intended language and task.

**When should I increase thinking effort?**

Try more thinking effort for difficult debugging or reasoning tasks, then compare results on representative examples. Higher effort can need more room for generation and does not guarantee a better answer.

