fastllm-claude-code
Use an authenticated Claude Code CLI as a FastLLM provider. The adapter runs models through fastclaude and supports streaming, non-streaming calls, and client-owned tool loops.
Your application executes tool requests and supplies the results in the next call. FastLLM replays canonical history after each tool round. fastclaude continues that history in a fresh process.
Usage
Installation
Install from PyPI:
pip install fastllm_claude_code
Or install from conda:
conda install -c AnswerDotAI fastllm_claude_code
For the latest source version:
pip install git+https://github.com/AnswerDotAI/fastllm-claude-code.git
Documentation
See the API documentation and source repository. Package listings are on PyPI and conda.
How to use
Installing the package registers the claude_code transport through FastLLM’s provider entry point. The Claude CLI must already be installed and authenticated for the current user.
Use the provider prefix in a FastLLM call:
from fastllm.acomplete import acomplete
answer = await acomplete('Answer briefly: what is 2+2?', model='claude_code/claude-sonnet-5')
For a client-owned tool loop, pass standard Responses API or Chat Completions function schemas. A response containing tool calls ends the turn. Execute the requests in your application, extend the history with their results, and call again.
Calls do not return a response id or retain conversation state between processes:
first = await acomplete(messages, model='claude_code/claude-sonnet-5', tools=tools)
assert first.tool_calls and first.response_id is None
final = await acomplete(messages_with_results, model='claude_code/claude-sonnet-5', tools=tools)
Set stream=True for FastLLM’s normalized async stream. Non-streaming calls collect the same stream into one Completion. The adapter never executes tool requests.
Release files for fastllm-claude-code 0.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastllm_claude_code-0.0.15.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastllm_claude_code-0.0.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.4 kB
Release files / fastllm_claude_code-0.0.15.tar.gz
| Download URL | fastllm_claude_code-0.0.15.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
786e2701c1c0d259c474a9cdc31fa44ab5a8773fc6910cbb0eb7da175fd60480
|
|
BLAKE2b-256 checksum How to use checksums |
058545ab7348828d809d8cf0a6403b712c9601e8e8b468d5c01411f4708a5afc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / fastllm_claude_code-0.0.15-py3-none-any.whl
| Download URL | fastllm_claude_code-0.0.15-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df7bdc317ba7c8dfe68a0355797f2ec5187a57ee65702bb5daed11b3ae8c0f9a
|
|
BLAKE2b-256 checksum How to use checksums |
16c6c196221b3638a24fd47ea64ee95312fd1eaea99d7774a37ab5a4b0e9902d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|