Skip to main content

fastclaude

fastclaude is a small, completions-style Python interface backed by the installed Claude Code executable. It inherits Claude CLI authentication, including OAuth and subscriptions, without requiring direct Anthropic API integration.

Each request starts from complete history:

  • accepts complete, editable histories as aidialog.msg_parts.Msg objects
  • compiles them into real Claude Code sessions rather than flattening them into a prompt
  • advertises tools as schemas and ends the turn at a tool_use, so the caller owns the tool loop
  • continues a history ending in ToolResults by deferral: the pending call is marked in the transcript and its known result served on resume
  • streams Claude output and supports native interruption
  • starts a fresh process for each request; an optional prompt_cache_key retains account-context reminders for prompt caching

See DEV.md for the design record and protocol findings.

Installation

pip install fastclaude

Development

pip install -e .

License

Apache License 2.0.

Metadata

Release files for fastclaude 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastclaude 0.0.6
File Size Uploaded
fastclaude-0.0.6.tar.gz 39.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastclaude 0.0.6
File Interpreter ABI Platform
fastclaude-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 80.0 kB

Release files / fastclaude-0.0.6.tar.gz

Download URL fastclaude-0.0.6.tar.gz
Size 39.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ab9023fe3d6c292e6e20e57a6671a8078799e8e45da099795f0399dd122a0067
BLAKE2b-256 checksum
How to use checksums
8e90281c6db5197b969109310c35bacc7270e0a5cdeb5d41dff8318bfcce6200
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / fastclaude-0.0.6-py3-none-any.whl

Download URL fastclaude-0.0.6-py3-none-any.whl
Size 41.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0bc1a10cc166428f89e99bebac469699c683d64e97ac10716ff96108251c871c
BLAKE2b-256 checksum
How to use checksums
2b16243f9f66d6422f39dcdbd5e2b9b07666faa48f72dcb8242af5c65fbe0762
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page