Skip to content
Jev Hub

[ Guide ]

How to use Jev in Claude Code, Codex and OpenCode

Published By Jev Hub

[ In short ]
  • Jev cannot be the model behind Claude Code, Codex or OpenCode, because it returns typed decisions and does not write code.
  • It helps in two other ways: a TypeSafe skill that teaches your coding agent to write Jev integrations, and a fast judge that your own tooling can call, for example to approve routine shell commands.
  • The skill installs with one command per agent, and the examples in the documentation use an API key from TypeSafe, OpenRouter or OpenCode Zen.
  • Keep the final safety rules in ordinary code and let Jev handle only the judgment calls.

Setup in each agent at a glance

FeatureClaude CodeCodexOpenCode
Install the TypeSafe skillclaude plugin marketplace add typesafe-ai/skills, then claude plugin install typesafe@typesafe-ainpx skills add typesafe-ai/skills --skill typesafe-ai, then choose Codex when promptednpx skills add typesafe-ai/skills --skill typesafe-ai, then choose OpenCode when prompted
Use the skillType /typesafe:typesafe-ai, or say "use the TypeSafe skill"Say "use the TypeSafe skill" in your promptSay "use the TypeSafe skill" in your prompt
Approve routine commands with Jev (OpenRouter's cookbook)A PermissionRequest hook in .claude/settings.jsonA PermissionRequest hook in .codex/hooks.json, trusted through /hooksA plugin in .opencode/plugins/, with shell permission set to ask
Key for the examplesA TypeSafe key (TYPESAFE_API_KEY) for the skill's experiments; an OpenRouter key for the hookThe sameThe same, or an OpenCode Zen key (Zen lists a free Jev 1.13 model for a limited time)

Commands are from TypeSafe's agent-skill page and OpenRouter's coding-agent cookbook, read on 15 October 2026. Cursor and other agents work the same way as Codex for the skill. Check the linked pages for current commands.

Can Jev be the model inside Claude Code or Codex?

No. TypeSafe's own documentation says Jev is not a coding-agent language model. It returns a structured answer (a choice with probabilities, a score on a rubric you define, or a yes/no probability) and does not write text or code, so it cannot replace the model behind Claude Code, Codex, OpenCode, Cursor or Copilot.

What it can do is work alongside them. The documentation's recommended path for coding-agent users is to install TypeSafe's agent skill, which gives the agent the context it needs to write programs that call Jev.

What can Jev do with a coding agent?

There are three realistic uses, in order of how little setup they need:

  • Help the agent write Jev code. Install the TypeSafe skill and the agent learns the API, the three question types and the usual patterns, so it can find places where one judgment call replaces fragile parsing and write the integration for you.
  • Act as a fast judge while the agent works. A small hook sends each pending command or action to Jev and gets back a probability. OpenRouter publishes a worked example for approving routine shell commands.
  • Run decisions inside the software the agent builds. Routing, scoring and checking statements are the uses TypeSafe's documentation names, and its patterns pages cover confidence routing and intent routing.

How do I install the TypeSafe skill?

TypeSafe's agent-skill page gives one command per setup. In Claude Code, run claude plugin marketplace add typesafe-ai/skills and then claude plugin install typesafe@typesafe-ai. For Codex, OpenCode and other agents, run npx skills add typesafe-ai/skills --skill typesafe-ai and select your agent when asked. The install is project-local by default, and adding -g makes it global. You can also copy the skill's folder into your agent's skills directory by hand.

The page warns you to choose one installation method, to avoid duplicate copies. To update in Claude Code, run claude plugin marketplace update typesafe-ai and claude plugin update typesafe@typesafe-ai, then restart or run /reload-plugins. Elsewhere, npx skills update does it.

To use it, type /typesafe:typesafe-ai in Claude Code, or name the skill in your prompt in any agent, for example "use the TypeSafe skill". Skills run with your agent's permissions, so read the skill file before you install it.

What should I ask the agent to do?

The skill page suggests three kinds of prompt:

  • Find opportunities. Ask the agent to find places where a judgment could replace complex parsing or fragile code.
  • Run experiments. Export your API key as TYPESAFE_API_KEY (from the TypeSafe console) and ask the agent to run cheap test queries and propose changes.
  • Apply a cookbook. Point the agent at a specific TypeSafe cookbook, or the cookbook index, to find patterns that make your code less fragile.

Can Jev approve my agent's permission prompts?

OpenRouter's cookbook shows how. A small TypeScript hook runs before each shell command in OpenCode, Claude Code, Codex CLI or Cursor. A fixed risk list goes first and sends dangerous commands straight to the normal prompt: recursive deletes, force pushes, sudo, publishing, deploying and credential access. Everything else goes to Jev as two yes/no questions: is the command reversible and contained to the project, and does it serve the task. The command is approved automatically only when both scores are at least 0.9. Errors, timeouts and unclear answers fall back to the normal prompt.

The cookbook estimates about $0.0000168 per request, using Jev 1.13 through OpenRouter. It is also candid about the limits: Jev only sees what is in the request, so the fixed list is the real safety boundary, scores vary a little between runs, and approvals apply to one request and do not create saved rules. In the Codex setup it tested, the hook did not receive the API key from the environment, so it recommends a git-ignored .env file.

Do I need an API key, and is it free?

Yes, for anything that calls Jev. The skill's experiments use a key from the TypeSafe console, and TypeSafe currently asks for credit before it creates one. The permission-prompt cookbook uses an OpenRouter key. OpenCode's Zen service lists a free Jev 1.13 model for a limited time, which can be called from inside OpenCode, but it is OpenCode's offer, not TypeSafe's.

Installing the skill itself costs nothing. At Jev's list price of $0.042 per million input tokens with free output, the test queries an agent runs while you build are a small cost.

What goes wrong?

TypeSafe's page lists the common problems and fixes:

  • The skill is not used. Invoke it explicitly, confirm the installer targeted your agent, then restart the agent.
  • The agent invents request fields. The skill may be out of date. Update it and try again.
  • Routing is off. Adjust the thresholds: too high causes missed cases and too low causes false alarms. Make the questions more specific.
  • The code is hard to review. Keep the questions and the threshold values together in one file.

What this means in practice

Our read: the useful picture is Jev as a cheap judge that your code calls, not a smarter coding model. Let your agent write the integration with the skill, keep one narrow yes/no or choice question per decision, and keep hard safety rules in ordinary code. Start by asking the agent where a judgment could replace a regex, because that is the lowest-risk first change.

Common questions

Sources

Written by Jev Hub from the sources below and checked against them on . Where a figure is a company's own claim, the article says so.

More in Learn, and every comparison on the Compare page.