docsp0ssess documentation

p0ssess

A Claude Code plugin that hands heavy, bulk and media work to cheaper models through OpenRouter.
Claude stays in charge.

On this page

Install · Quick start · How it works · Plans · Security · Docs · Releases · p0ssess.me

Tell p0ssess once which chores don't need Claude's rates. From then on Claude hands them to a cheaper model, checks what comes back and answers you as usual. It also does what Claude can't: watch a video, hear a recording, make an image. Small edits and plain questions never leave Claude.

Four hand-offs we measured, by the other model's bill: unit tests for 15 Python modules, $0.0291; 300 support tickets triaged, $0.0781; a ten-minute film watched with its sound, $0.0162; a 1024-pixel image, $0.0070. Each answer ends with one receipt line: the model, the cost, and the saving against Claude when there is one.

A receipt is the other model's bill. Claude's own planning and checking is billed as usual, so what a job saves depends on the job. The measured comparisons against Claude alone, including the jobs where p0ssess did not win, are on p0ssess.me, and site/README.md gives the source of every figure.

The hand-off runs in a small background subagent on Haiku, the possession. It makes the call and brings back only the result, so the work never fills your conversation.

Install

You need Claude Code 2.1.319 or later and an OpenRouter API key.

sh
claude plugin marketplace add cm208/p0ssess
claude plugin install p0ssess@p0ssess

Put your OpenRouter key where p0ssess reads it:

sh
mkdir -p ~/.config/p0ssess/secrets
install -m 600 /dev/null ~/.config/p0ssess/secrets/openrouter_key
"${EDITOR:-vi}" ~/.config/p0ssess/secrets/openrouter_key

Start Claude Code. The tour opens in your first session and takes about a minute: your spending envelope (keep it or pick another), whether to share anonymous usage counts (off unless you say yes), a live demo you choose, capped at one cent, and where to see spend. /p0ssess:tour runs it again any time.

The plugin runs one Go binary, for Linux (amd64, arm64), macOS (Apple silicon) and Windows (x64). The launcher runs it only when its SHA-256 matches dist/SHA256SUMS for this version, or builds it from the plugin's own vendored source with Go 1.27 or later. The sandboxed agent path runs locally on Linux with rootless podman. On macOS and Windows, with Pro or Team, it runs in the hosted cloud sandbox with nothing to install; without Pro, media, read-only and one-shot jobs still work, and an edit job says plainly that it needs Pro. docs/INSTALL.md has the details, Windows notes, updating, and how to remove everything.

Quick start

Ask the way you normally would:

You say What happens
"Watch bug-repro.mp4 and tell me where it breaks." The video goes to a model that can watch it. Claude answers from what comes back.
"Make an image of a ghost holding a lantern." The image lands as a file and Claude prints its path.
"Transcribe standup.m4a and list the action items." The recording goes to a speech model; Claude writes the list.
"Use deepseek flash to draft tests for stats.py." DeepSeek works in a sandbox on its own git worktree. The edit comes back as a diff with the tests run.
"Always send unit test writing to deepseek flash." Claude writes the rule, shows it in one line and saves it when you say yes.
"Auto-approve short media jobs up to 5 cents each today." A standing approval, saved after you confirm.
"How much have I spent on OpenRouter this month?" Claude reads your ledger.

How it works

Routing

When no rule of yours covers a job, the p0ssess engine prices every route that could do it, Claude included: one OpenRouter call, a sandboxed agent session on another model, a smaller Claude subagent, or a local tool. It weighs the cash, the Claude usage it saves, how likely each model is to get it right (public benchmarks plus your own history), and how much a wrong answer would hurt. The work stays on Claude whenever handing it off wouldn't save anything.

Claude rates each task from trivial to critical. Critical work (auth, infrastructure, production, money) stays with Claude unless you say otherwise. A model works the day OpenRouter lists it, because prices and ids come from OpenRouter's live list. docs/ENGINE.md has the scoring.

Usage-limit rescue (Pro)

When Claude's 5-hour or weekly window passes 85% used, or is on course to run out before it resets, p0ssess takes routable work (research, summaries, bulk and media work, code edits that fit) by default, inside your spending envelope, and says so in one line: "Claude's 5-hour window is at 91%: p0ssess is taking routable work until it resets at 3:40 PM." When the window resets it hands back and says that once. Critical work is never moved silently: Claude names the model and the cost and asks once for that task. "Keep this on Claude" always wins, and rescue never spends past your limits. On Free you get one line per window saying rescue is a Pro feature and what it would have taken over (an estimate). The status line shows a violet rescue while it is on, and the p0ssess page lists each period and what it handled. Turn it off or move the threshold in plain words: "turn rescue off", "start rescue at 90%".

The spending envelope

One envelope, enforced by the tools that spend and not left to Claude's judgment:

  • a daily limit that warns,
  • a monthly cap that stops paid runs,
  • an auto-approve amount per task. Under it a job just runs. Over it Claude asks once, in one line with the cost, and that one yes covers retries.

A new install starts at $1 a day, $10 a month and $0.25 a task. Each call's maximum is reserved before it is sent and settled to the measured cost after, so parallel calls cannot overshoot. A run that fails before it reaches a model costs nothing. Change any limit in plain words: "cap OpenRouter at $5".

Rules

"Never use grok." "Only use gemini-3.8-flash for video." Claude shows the rule it wrote in one line and saves it when you confirm. p0ssess may suggest a rule or a shortcut from your history, and it never creates one on its own. A repository's own .p0ssess/rules.toml can only tighten your limits, never loosen them.

Receipts

Every result carries one line: (model, $cost), plus saved ~$X when the same tokens on Claude Sonnet would have cost more. A cost under a cent prints to four places. A cost OpenRouter has not reported yet reads about $… and counts at the reserved maximum until it does. The local page keeps every receipt.

Edits

Agent work on files runs in a sandbox on a separate git worktree and carries your uncommitted changes in. Afterwards p0ssess runs the project's tests on the result. When they pass and your checkout is clean, the change is applied with a line that reverts it; otherwise it stays a diff for Claude to review. docs/RELAY.md covers the agent path.

Where the sandbox runs

On Linux with rootless podman the sandbox runs on your machine. On macOS, Windows, and Linux without podman, a Pro or Team install sends agent jobs to the hosted sandbox by itself; no setting or environment variable is needed. When the hosted sandbox is busy, your job waits in a queue and the status line says where it stands (queued 2nd, ~4 min); it gives up with one line after 10 minutes. Pro includes 20 sandbox hours a month, and the p0ssess page shows what is used and left. To choose yourself, tell Claude "run agent jobs locally", "in the cloud" or "automatically". Only the files git tracks go up, never anything that looks like a secret. docs/RELAY.md has the details.

Where to look

/p0ssess:p0ssess-me

A card with spend meters and your limits, then the address of a local page. A new install reads $0.00 of $1.00 today and $0.00 of $10.00 this month.

After the first runs the card adds this month's runs and savings and the last run. With the status line set up, it also shows Claude's 5-hour and weekly usage when Claude Code reports them.

The page runs on 127.0.0.1 only, behind a random token, loads nothing from the network and stops after two hours. It shows receipts, notices, recent runs, rules, Claude's usage windows and editable limits. When something is missing for quiet runs (the key, allow rules, the status line segment), the card ends with a setup line and Claude offers that one step, only with your yes. p0ssess setup undo reverts every settings change p0ssess made.

The status line

A segment after your own status line, such as ᗣ p0ssess $0.42/$1: today's spend against the daily limit, then what runs.

Muted when calm, a little brighter while something runs, amber near a limit, violet rescue while usage-limit rescue is on, and red only when paid runs stop. Never animated. It reads local files only.

Plans

Free Pro Team
Price $0, MIT $4 a month or $36 a year $8 a seat a month
Routing, rules, budgets, receipts yes yes yes
Savings figures on the p0ssess page, with a shareable card yes yes yes
Usage-limit rescue: p0ssess takes routable work when Claude's window nears its limit a one-line preview yes yes
Monthly savings report by email yes yes
Local sandbox for coding work (Linux with podman) yes yes yes
Cloud sandbox on macOS and Windows, 20 sandbox hours a month yes yes
Calibration on your own work yes yes
Shared rules that only tighten, a budget share per member, spend dashboard yes

Pro is for the person who hits Claude's usage limit: rescue keeps the work going, the savings report shows what it saved, and the cloud sandbox runs coding hand-offs without podman.

On every plan, model calls bill to your own OpenRouter key. /p0ssess:pro shows the plans and upgrades in your browser, and p0ssess.me/pricing has them in full. /p0ssess:team invites people by email and shows seats, spend by member and model, and the shared rules; owners can pre-approve spending for every seat and set a hard team budget.

Security and privacy

  • Agent work runs in a podman sandbox with no access to your home directory, SSH keys or credentials, and no route to your local network. Each session gets its own sandbox, removed when it ends. Shell commands inside have no network unless you turn on internet for a project yourself, and then only public addresses.
  • Your OpenRouter key is read from one file (mode 0600) and is never printed or logged. On the agent path it lives only in a separate proxy container the model cannot reach. p0ssess never reads, stores or relays your Claude credentials.
  • Every call tells OpenRouter not to route to providers that train on prompts. Privacy mode zdr sends only to zero-retention endpoints and refuses models without one.
  • Files that look like secrets (.env, keys, credentials) never leave. A .p0ssess-private file in a repository blocks all delegation from it and every directory below.
  • The engine sees no prompts. Ranking requests carry a short task description, input and output types and sizes, the stakes and your model limits, never your prompt, your files or their names. The service keeps no request logs.
  • Anonymous outcome records, one line per finished run (kind, model, route, stakes, outcome, coarse cost, week), are shown on the local page before they go. "Turn off outcome records" stops them.
  • Usage counts are off unless you say yes (the tour asks once, or say "share usage counts"). Then, once a week, p0ssess sends how many times each of nine milestones happened that week (install, tour done, first route, first saving, limit rescue offered and used, upgrade viewed and clicked, device linked) under a random id that is not your account or install token, and nothing else. The local page shows each batch before it goes. "Turn off usage counts" stops them and deletes what was not sent.
  • The Savings section of the page and p0ssess savings are computed on your machine from your own receipts. With Pro or Team, a linked install also sends last month's totals once (figures only, never prompts, files, paths or task text; the page shows them first) so the server can email you a summary. "Turn off the monthly report" stops it; Free installs never send it.
  • Releases are reproducible. The same commit and Go version build byte-identical binaries, so anyone can rebuild a release and compare. scripts/build-release.sh --check builds twice and compares.

The full list of what goes where is in docs/DESIGN.md and on p0ssess.me/privacy.

Docs

Also at docs.p0ssess.me.

Page What it covers
INSTALL.md requirements, Windows, the binary, updating
INSTALL-NOTES.md everything p0ssess puts on your machine, and how to remove it
DESIGN.md the design: routing, limits, rules, privacy
ENGINE.md how routes are scored, the defaults and why, config files and tools
RELAY.md the sandboxed agent path
MEDIA.md video, audio, images and PDFs, with measured costs

Support

Write to [email protected], or open an issue.

License

MIT. See LICENSE and, for third-party material, NOTICE.

This page is generated from README.md.