---
name: tenjin
description: Install the Tenjin tool router for Claude Code (Codex support is experimental). Use when the user asks to install or set up Tenjin, or wants outside tools without signing up for each provider. Handle dependencies and guide only the spending and funding decisions that need the person. Once installed and active, Tenjin supplies its own hooks and tools.
---

# Tenjin

Tenjin suggests useful tools and lets agents browse and choose tools themselves. One
local balance pays for use within the person's spending limits. The agent handles
setup; the person chooses spending limits and whether to add funds.

## Install Tenjin

The person's install request authorizes Tenjin's official installer and its dependencies.
Do not ask again for installation permission, ask for secrets, or hand terminal work to the person.
Claude Code is supported; Codex support is experimental. Node and npm are not required.

1. On macOS/Linux, run `curl -fsSL https://tenjin.sh/install.sh | sh`.
   On Windows run `irm https://tenjin.sh/install.ps1 | iex` alone in PowerShell.
2. Read the complete installer result, including `nextSteps` and `next`; never truncate it.
   If no complete Tenjin setup result returns, treat installation as failed even if the shell exits zero.
   Carry forward choices already made. Recommend "Add $5" so the person can start using tools.
   Ask each remaining spending question once, run its chosen command separately, then read the new result.
   For funding, follow the returned instructions to prepare a checkout link without opening a browser
   or waiting for payment. Show the clickable link promptly; the person chooses when to open it.
   If the person skips funding, explain that paid Tenjin tools need funds, continue with available
   tools and offer funding again only on request.
3. Explain once that active Tenjin shares relevant task context to choose tools; details are at
   https://tenjin.sh/privacy. Give one activation action from `next` for the current host.
   Use its reload, host-update or new-session instruction rather than guessing. A new session
   gets one short task-continuation prompt. Confirm the tools are active before claiming setup
   is complete, then return to the original task. Storage paths and addresses are recovery details.

### Permission blocks
Preserve the host's permission checks. A user refusal or managed denial means stop.
Only after an automatic permission denial before a command ran, ask once to retry that same
official installer. If allowed, retry the exact blocked command once;
a further denial stops the attempt. Never switch
shells, mirrors or encodings, weaken permissions, or ask the person to bypass the block.

### Returning from checkout
Check the Tenjin balance and readiness when the person returns. Say "Funds not confirmed" until
observed; a failed balance check is not a zero balance. Do not open another checkout merely
because funds have not arrived. Explain an actual paid-call refusal briefly and continue with
available tools.

## Read more

- https://tenjin.sh/llms.txt: the short index.
- https://tenjin.sh/llms-full.txt: the router and lookup endpoints, request by request.
- https://tenjin.sh/tools: every tool and its price.
- https://github.com/BackTrackCo/tenjin-agent: the CLI's source and setup.
