larik v0.25.0

Terminal coding agent · written in Go

Plan on the best.
Run on the rest.

Larik is one terminal agent for every model. Your strongest model plans and reviews, cheap or local models do the reading and editing, and shell commands run in an OS sandbox by default.

macOS · Linux
curl -fsSL https://larik.vinensiuswibowo.com/install.sh | sh

Works with

  • Anthropic
  • OpenAI
  • Gemini
  • Ollama
  • LM Studio
  • OpenRouter
  • Groq
  • DeepSeek
  • xAI
  • Mistral
  • +4 more

One task. Three models. Four cents.

Real session · ~/code/api

01 / Model routing

Pay frontier prices
only for the thinking.

Routing guide →
One task, four turns
RoleModelCost
main · plananthropic/claude-sonnet-5$0.031
exploregemini/gemini-3.8-flash$0.002
workerollama/qwen3-coderfree
main · reviewanthropic/claude-sonnet-5$0.007
Session total$0.040

A budget that holds.

Warn at 80%, stop before the request that would cross the cap. Local and plan models count as free.

Fallbacks that don't waste a turn.

Rate limited? Larik moves to the next model before any output starts. Small models get a leash: worktrees, turn caps, loop detection.

/routing → Balanced · Cheapest · Local and plan first

02 / Execution

Tool calls or scripts.
Chosen per model.

A model can write a short script that calls your tools. Reading forty files to count something costs the context one summary, not forty results.

Execution guide →
js
// run_code: tests per package, top five
const hits = tools.grep({ pattern: "^func Test" })
const perPkg = {}
for (const line of hits.split("\n")) {
  const pkg = dir(line.split(":")[0])
  perPkg[pkg] = (perPkg[pkg] || 0) + 1
}
top(perPkg, 5)

in: hundreds of matchesback to context: 5 rows

  • tools
    One call per stepThe classic loop. Every result lands in context.
  • hybrid
    The model picksScripts for loops and filtering, direct calls for the rest.
  • code
    Scripts onlySame permissions, hooks and /undo for every call a script makes. No writes, no network, 256 MB cap.
  • Set per model with /execution · measure with larik bench --execution

03 / Safety

Read. Edit. Verify.
In a sandbox, by default.

Built in,
not bolted on.

12 capabilities

Bring any model.
Keep your setup.

curl -fsSL https://larik.vinensiuswibowo.com/install.sh | sh

macOS · Linux · Windows — or download a binary