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.
- accepts complete, editable histories as
aidialog.msg_parts.Msgobjects - compiles them into real Claude Code sessions rather than flattening them into a prompt
- lets Claude own the live agent loop
- exposes ordinary annotated Python callables as tools
- streams Claude output and supports native interruption
- remains stateless across requests
See DEV.md for the complete design, protocol findings, source references, and implementation.
pip install fastclaudepip install -e .Apache License 2.0.