Reika is a terminal coding agent that can use a model running on your own computer. This guide connects it to Ollama, then proposes a small practice task with a change you can inspect. It uses current provider documentation checked on November 15, 2026. AltStack did not install Reika, download model weights or run this workflow; the upstream screenshot shows a separate historical provider demonstration.

What is free, and what hardware do you need?

Reika’s application and GPT-OSS 20B weights have separate Apache-2.0 licenses. Running that model locally does not require a ChatGPT subscription or paid model API. It still uses your computer, storage and electricity. The Ollama model page lists a roughly 14 GB download and describes operation with as little as 16 GB memory; that is not a promise that your operating system, context window and other applications fit comfortably together. Leave headroom or use a stronger machine.

This exercise uses the local model name gpt-oss:20b, without a cloud suffix or remote provider. Reika also supports hosted endpoints, whose billing and data handling are separate. Its tested-model list establishes an upstream compatibility observation, not equality with Claude Code or a coding-quality benchmark.

Install the CLI and prepare an empty practice folder

Reika requires Node.js 22 or newer. Its platform guide covers macOS, Linux and Windows through WSL; direct native Windows execution is not supported. Use the official Node and Ollama installers for your system, start the local Ollama service, then check their versions in your terminal. Install Reika with the documented scoped npm package below. Do not run several package-manager installation methods for the same first setup.

Create a new, empty reika-practice folder and open a terminal there. Keep production code, credentials and personal files out of this first exercise. Reika is pre-1.0, so note the installed version and revisit its documentation when behavior differs. On Windows, run these shell commands in WSL rather than PowerShell.

Check prerequisites and install Reika

node --version
ollama --version
npm i -g @alexwkleung/reika

Create a local model with an explicit context window

Download the named Ollama model. In your empty practice folder, create a plain-text file named Modelfile containing the two lines below, then create the local model alias. FROM retains the base model’s template; this guide does not replace it with a generic chat template. PARAMETER num_ctx sets the model’s working window to 8,192 tokens.

The alias reika-gpt-oss is a local configuration you create, not a separate provider product. Ollama’s Modelfile reference documents this mechanism. A larger window consumes additional memory; 8,192 is an example for this limited exercise, not a hardware recommendation or Reika’s maximum supported context.

Download, save the Modelfile and create the local alias

ollama pull gpt-oss:20b
cat > Modelfile <<'MODEL'
FROM gpt-oss:20b
PARAMETER num_ctx 8192
MODEL
ollama create reika-gpt-oss -f ./Modelfile
ollama show --modelfile reika-gpt-oss

Point Reika at the local server and match its context

In the same terminal, export these settings and launch Reika. Ollama’s OpenAI-compatible local endpoint uses port 11434 and the /v1 path. The no-key value is a non-secret placeholder for local operation, not a free credential for any hosted provider. Set REIKA_CONTEXT_WINDOW to the same 8,192 tokens configured in the Modelfile: Reika’s platform guide warns that it cannot discover Ollama’s window automatically.

The plan startup mode begins with inspection. Explicit approval mode off asks before edits and ordinary agent-mode commands; read-only plan inspections can run without a prompt. It does not disable approval prompts. Set endpoint and approval options in your shell or the documented global configuration, because Reika deliberately ignores sensitive settings from a project .env file. The empty mode-model mapping prevents an earlier hosted profile from being selected when you switch modes.

Local-only model endpoint for this practice session

export REIKA_BASE_URL=http://localhost:11434/v1
export REIKA_API_KEY=no-key
export REIKA_MODEL=reika-gpt-oss
export REIKA_CONTEXT_WINDOW=8192
export REIKA_DEFAULT_MODE=plan
export REIKA_MODE_MODELS=
export REIKA_AUTO_APPROVE=off
reika

Ask for one small plan before allowing a change

Create add.cjs yourself with the deliberately incorrect starter function shown below. It returns a - b instead of a + b. Give Reika a narrow task: inspect add.cjs, explain why add(2, 3) is wrong and propose the smallest correction with a test. In plan mode it can inspect the project and produce a plan. Review the filename and intended change before using /implement and selecting the execution mode.

When a tool asks to act, read the actual command or edit. Afterward inspect add.cjs yourself, then run node -e "require('node:assert/strict').equal(require('./add.cjs')(2, 3), 5)" in the shell. It should complete without an error after the correction. A passing example supports that case; it does not establish correctness for every input. This is a suggested exercise, not a completed AltStack test.

Deliberately incorrect starter: save as add.cjs in the empty practice folder

module.exports = (a, b) => a - b;

Check data boundaries, save your work and end the session

A localhost inference endpoint keeps that model request on the same machine. Optional search, MCP connections, hosted profiles and commands can still contact outside services. Some integrations may already be enabled by configuration or defaults, including browser search on a Mac with Chrome installed. Review them before using sensitive code; this local practice task does not need a web search or external tool connection. Reika’s macOS command sandbox has platform-specific limits; Linux and WSL do not have that same sandbox. Approval prompts and an isolated practice folder remain useful on every platform.

Reika documents /save for a transcript and /exit to finish. Treat transcripts as potentially sensitive code records before sharing them. A saved conversation is not a backup of your project files.

Record the model, configuration and reviewed change

Keep the original and corrected add.cjs, your assertion result and the Modelfile in a practice-project record. Note the installed Reika/Ollama versions, actual local model alias and paired context settings. These details help distinguish a client update from a model or configuration change when the same task behaves differently later. Do not include real provider keys in a shared setup note.

For an actual repository, inspect the diff and run its own relevant checks before committing. Keep an independent backup or version-control checkpoint before allowing a larger edit. If you change the model alias or context after this exercise, repeat a small task before trusting that configuration with more files. This proposed record demonstrates your own observations; it should not become a claim that AltStack tested a device or model.

How do you troubleshoot connection, memory and model errors?

For a connection failure, first confirm the local Ollama application or service is running, then check the endpoint and port. For an unknown model, compare REIKA_MODEL with the exact alias reported by Ollama rather than replacing it with an arbitrary cloud model. For missing context or unexpectedly lost history, compare both context settings and restart the session after correcting them.

If model loading exhausts memory, close other large applications and review the selected model and runtime requirements. Reducing the context window means reducing it in both the Modelfile and Reika configuration, then recreating the alias. A smaller supported model can be a separate evaluation. Model-generated commands, dependency choices and edits still need review; local inference changes who runs the model, not whether its output can be wrong.

Official instructions and sources

Reika installation and first runReika tested local modelsReika platform differences and Ollama contextReika endpoint, approval and context configurationReika plan mode, implementation and transcriptsReika application licenseOllama Modelfile referenceOllama local OpenAI-compatible endpointGPT-OSS 20B Ollama size and runtime informationGPT-OSS model-weight license

Original AltStack guide by Sushil Kumar Sah. Installation steps follow provider documentation; they do not imply testing on every supported device.