Appearance
Getting started
Oibre (oc) is a terminal coding agent for OpenAI-compatible chat completions endpoints. You can use hosted providers such as OpenAI or OpenRouter, or a local server such as Ollama.
Install
Online installer
On macOS (Intel or Apple Silicon) or Linux (glibc), run:
sh
curl -fsSL https://oibre-oc-install.oibre.workers.dev/install.sh | sh
# Or: wget -qO- https://oibre-oc-install.oibre.workers.dev/install.sh | shThe Unix installer puts oc in ~/.local/bin and configures PATH for bash or zsh. For other shells, add that directory to PATH manually.
On Windows x64 or ARM64, run in PowerShell:
powershell
& ([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://oibre-oc-install.oibre.workers.dev/install.ps1').Content))The Windows installer installs native oc.exe to %LOCALAPPDATA%\oibre\bin and adds that directory to your user PATH. Open a new Command Prompt or PowerShell window afterward. WSL is not required; 32-bit Windows is not supported.
The online installers verify the downloaded archive's SHA-256 digest against the release manifest. They refuse to replace a different existing oc unless --force (Unix) or -Force (PowerShell) is specified; Windows preserves unrelated launchers even with -Force.
Release archive
The release manifest lists archives and checksums for macOS, Linux, and Windows. Download and verify the archive for your machine before extracting it. For example, replacing the version and target with the appropriate release:
sh
archive=oc-v0.1.0-darwin-arm64.tar.gz
base=https://oibre-oc-install.oibre.workers.dev/releases
curl -fsSLO "$base/$archive"
curl -fsSLO "$base/SHA256SUMS"
grep " $archive$" SHA256SUMS | shasum -a 256 -c - # Linux: sha256sum -c -
tar -xzf "$archive"
sh "${archive%.tar.gz}/install.sh"On Windows, use the PowerShell installer above or extract the Windows ZIP and run install.cmd.
From source
From a source checkout, install Bun 1.2 or newer, then run:
sh
bun install
bun link # put oc on PATH
bun run build # optional standalone binary for this machine: dist/ocPlatform notes
Linux binaries require glibc; musl-based distributions such as Alpine are not supported by those binaries.
Native clipboard paste and detached scheduling are macOS-only. On other systems, use your terminal's paste shortcut.
On Windows, the agent's
bashtool requires Git for Windows, which provides Git Bash.macOS binaries are not notarized. If macOS blocks a verified download, remove its quarantine attribute:
shxattr -d com.apple.quarantine "$HOME/.local/bin/oc"
Set up a provider
Run oc in a terminal. On first launch, the setup wizard helps you add an endpoint and select a model. You can instead run oc config add for interactive endpoint setup, or configure one explicitly. For example, with an OpenAI API key in your environment:
sh
export OPENAI_API_KEY='your-api-key'
oc config add openai --url https://api.openai.com/v1 --key '$OPENAI_API_KEY'
oc config default openai/gpt-4.1
oc modelsSingle quotes keep $OPENAI_API_KEY as a reference in the saved configuration rather than expanding the key into the command. Set the environment variable in every shell that runs oc. PowerShell users can set $env:OPENAI_API_KEY = 'your-api-key' and use the same single-quoted --key argument. Avoid putting real keys in shell history, scripts, or shared files.
Omitting --models fetches model IDs from the endpoint's /models; if the endpoint does not provide a usable list, supply --models explicitly. See Configuration for local servers, multiple providers, model selection, and secret handling.
Start using oc
Change into the project directory you want to work in, then start a session:
sh
cd /path/to/project
oc
# Or start with a prompt:
oc "explain this project"In the interactive UI, enter a request and use /help to see commands. /model opens the model picker, and /exit quits. Choose a model just for this invocation with oc -m ollama/qwen3:8b after configuring that provider.
For a non-interactive answer, use print mode. The answer goes to stdout and tool activity to stderr; piped stdin is appended to the prompt:
sh
oc -p "summarize src/"
git diff | oc -p "review this"Sessions are associated with the current directory. Use oc sessions to list them, oc -c to continue the most recent one, or oc -r "refactor auth" to resume by name, ID, or unique ID prefix. Run oc --help for CLI options.
The agent can read and change workspace files and run commands with your process permissions. Review its actions and changes; this is not an OS sandbox. Requests and relevant project content are sent to the configured model endpoint, so use a provider you trust with that data.