# Ori Harness: The Best Way to Use OpenRouter with Any Harness

By Steven Van · 2026-08-04

Using OpenRouter with your favorite harness usually means ad-hoc scripts or a wall of environment variables.

[OpenRouter](<https://creatorstoolbox.com/tools/openrouter>) has released a CLI called **ori** that configures coding harnesses to run against its gateway without hand-editing environment variables. Installing it and running ori login sets up an optimised connection for a given harness in one step.

- Supported today: Claude Code, Codex, OpenCode and Hermes, run via ori claude, ori codex, ori opencode and ori hermes.

- For Claude Code specifically, ori sets the full range of environment variables needed to match the first-party experience, including base URL, auth tokens and tool search settings, and adjusts them based on the --model flag so open models that don't support tool search aren't given settings built for Anthropic's models.

OpenRouter says more harnesses are planned, along with better support for desktop apps, a toolbar widget for tracking usage and switching to OpenRouter globally, and bundled WebSearch plugins for harnesses like OpenCode. Feedback on which harnesses to add next can go in the #ori-feedback channel on OpenRouter's Discord. Full details are in the [announcement](<https://openrouter.ai/blog/announcements/ori-harness/>).

[![](<https://openrouter.ai/blog/images/ori-harness.png>)](<https://openrouter.ai/blog/announcements/ori-harness/>)

![OpenRouter](<https://openrouter.ai/favicon/glyph.png>)

OpenRouter

One API for 500+ AI models across 80+ providers — pay with credits that work anywhere, with automatic fallback when a provider goes down.

[View OpenRouter →](<https://creatorstoolbox.com/tools/openrouter>)

Sources

[Original source](<https://openrouter.ai/blog/announcements/ori-harness/>)

[Read Ori Harness: The Best Way to Use OpenRouter with Any Harness on Creators Toolbox](<https://creatorstoolbox.com/blog/openrouter-ori-harness-the-best-way-to-use-openrouter-with-any-harness>)

---
Canonical source: https://creatorstoolbox.com/blog/openrouter-ori-harness-the-best-way-to-use-openrouter-with-any-harness
