repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/klaus/README.md

Raw

Klaus

Klaus exposes current Claude models as a Pi provider through Anthropic's Claude Agent SDK. Pi remains responsible for context, tools, compaction, hooks, and UI.

Install / load

Klaus is loaded through the root pi-ext package. Log in to Anthropic through Pi, then select a klaus/* model.

Klaus uses Anthropic's proprietary Claude Agent SDK and native Claude Code runtime under Anthropic's commercial terms. It accepts Pi-managed Anthropic OAuth only.

On Termux Android ARM64, Klaus installs the exact matched Linux ARM64 runtime into user state and launches it through glibc-runner. Install the runner with pkg install glibc-repo && pkg install glibc-runner.

State

Persisted primary Pi sessions mirror opaque Claude cache entries under the configured Pi session directory in .klaus/. Klaus never uses normal ~/.claude sessions. The cache duplicates conversation data, is plaintext like Pi sessions, grows until manually removed, and uses private file permissions.

Reported cost is API-equivalent spend calculated with Pi's Anthropic rates, not the subscription charge. Fable may consume separate usage credits and warns before first use in each Pi session.

Commands / tools / settings

None.

See the binding specification.

Markdown source
File outline
# Klaus

Klaus exposes current Claude models as a Pi provider through Anthropic's Claude Agent SDK.
Pi remains responsible for context, tools, compaction, hooks, and UI.

## Install / load

Klaus is loaded through the [root pi-ext package](../../README.md).
Log in to Anthropic through Pi, then select a `klaus/*` model.

Klaus uses Anthropic's proprietary Claude Agent SDK and native Claude Code runtime under Anthropic's commercial terms.
It accepts Pi-managed Anthropic OAuth only.

On Termux Android ARM64, Klaus installs the exact matched Linux ARM64 runtime into user state and launches it through `glibc-runner`.
Install the runner with `pkg install glibc-repo && pkg install glibc-runner`.

## State

Persisted primary Pi sessions mirror opaque Claude cache entries under the configured Pi session directory in `.klaus/`.
Klaus never uses normal `~/.claude` sessions.
The cache duplicates conversation data, is plaintext like Pi sessions, grows until manually removed, and uses private file permissions.

Reported cost is API-equivalent spend calculated with Pi's Anthropic rates, not the subscription charge.
Fable may consume separate usage credits and warns before first use in each Pi session.

## Commands / tools / settings

None.

See the [binding specification](../../docs/super/specs/2026-08-21-klaus-plan-spec.md).