🐮 calfkit-tools
Tools for calfkit agents — shell, files, code, web, and todo — each deployable as a tool node.
calfkit is an SDK for building AI agents as
distributed, event-driven microservices over Kafka. calfkit-tools gives those agents a
ready-made toolbox of eleven tools. Every tool is a calfkit ToolNodeDef — a small service (a
"node") that you run as a process; it exposes the tool on Kafka topics that calfkit agents call.
- One install, eleven tools — shell, file ops, code execution, web search/fetch, and task tracking.
- Import and go — every tool is importable straight from
calfkit_tools.tools, ready to deploy. - Deploy as nodes — 1:1 tool→node; tools run on your own host by default (Docker/Modal/Daytona sandboxes are opt-in, not required).
Contents
- Install
- Quickstart
- Available tools
- Importing a specific tool
- Security
- Deploying tools as nodes
- Contributing
- License
Install
pip install calfkit-tools # or: uv add calfkit-tools
Requires Python 3.10+. Installing calfkit-tools also pulls in the calfkit SDK and its
ck run CLI. The base install runs every tool with its default backend (shell and code
execution run locally).
Optional extras add remote shell-execution backends for the terminal, process, and
execute_code tools — the default local backend needs none of them:
pip install "calfkit-tools[shell-docker]" # run shell commands in Docker
pip install "calfkit-tools[shell-modal]" # ... in Modal sandboxes
pip install "calfkit-tools[shell-daytona]" # ... in Daytona sandboxes
pip install "calfkit-tools[all]" # all three
Quickstart
Each tool is a calfkit node, so running one needs a reachable Kafka broker (defaults to
localhost; point elsewhere with --host / -H or the $CALFKIT_MESH_URL env var). Serve a tool
on the mesh with the ck run dev command:
ck run calfkit_tools.tools:terminal
The node consumes tool.terminal.input and replies on tool.terminal.output — any calfkit
agent on the mesh can now call terminal. Host every tool in one worker with the ALL_TOOLS
bundle:
ck run calfkit_tools.tools:ALL_TOOLS # all eleven tools in one worker
To host tools programmatically, add the imported nodes to a calfkit Worker (constructed with a
Client for the Kafka connection). See the calfkit SDK
for Client / Worker setup and for how an agent calls a deployed tool:
from calfkit_tools.tools import terminal, read_file, write_file
# `worker` is a configured calfkit Worker — see the calfkit SDK for construction.
worker.add_nodes(terminal, read_file, write_file)
Available tools
Eleven tools, all importable from calfkit_tools.tools:
from calfkit_tools.tools import terminal, read_file, web_search, web_fetch # etc.
| Tool | What it does |
|---|---|
terminal |
Execute a shell command in the session's terminal environment. |
process |
Manage background processes started with terminal(background=True). |
execute_code |
Run a Python script that can call the other tools programmatically. |
read_file |
Read a text file with line numbers and pagination. |
write_file |
Write content to a file, completely replacing existing content. |
patch |
Make targeted find-and-replace edits in files. |
search_files |
Search file contents or find files by name. |
web_search |
Search the web and return ranked links. |
web_extract |
Extract readable content from one or more web pages. |
web_fetch |
Fetch a single URL through an SSRF-protected fetcher and return its content as markdown (binary responses come back base64-encoded with their media type). |
todo |
Manage a per-session task list. |
ALL_TOOLS is the list of all eleven tool nodes; InMemoryTodoStore is the worker-lifetime
store the todo tool binds as a resource. Both import from calfkit_tools.tools too.
Importing a specific tool
Import any tool straight from the package root:
from calfkit_tools.tools import terminal, search_files, web_search, web_fetch
or pull in the whole set at once:
from calfkit_tools.tools import ALL_TOOLS
See
docs/reference/tool-contracts.md
for each tool's full parameter, resource-wiring, and reply-shape contract.
Security
The default local backend is not a sandbox — terminal, process, and execute_code run
real commands directly on the host machine. Review the blast radius before deploying:
terminal,process, andexecute_coderun real commands. On the default local backend they run directly on the host; use a remote shell backend ([shell-docker]/[shell-modal]/[shell-daytona]) to sandbox them.write_fileandpatchmodify the real filesystem;read_fileandsearch_filesread it.web_fetchis SSRF-guarded by default: private/loopback addresses are blocked, requests time out after 30s, and content is capped.
State is held in memory and isolated per calling agent (ADR-0004), so run one process per stateful node. Durable state and further hardening are on the roadmap.
Deploying tools as nodes
Each tool is a 1:1 calfkit ToolNodeDef serving name-derived topics (tool.<name>.input /
tool.<name>.output). For node contracts, deps/resource wiring, env configuration, and the
trust model, see:
docs/design/node-port.md— the node-port design.docs/reference/tool-contracts.md— roll-up of every tool's interface contract.
Contributing
Contributions are welcome. See
CONTRIBUTING.md for
the dev setup and how to add a tool. Questions and bug reports are welcome at
GitHub Issues.
License
Licensed under Apache-2.0. The
distribution also bundles third-party components under the MIT license; see
THIRD_PARTY_NOTICES.md
for the full attribution index. The combined SPDX expression is Apache-2.0 AND MIT.
Metadata
Release files for calfkit-tools 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| calfkit_tools-0.1.4.tar.gz | 771.8 kB | With provenance | Details for calfkit_tools-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| calfkit_tools-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for calfkit_tools-0.1.4-py3-none-any.whl |
Total release size: 1.3 MB
Release files / calfkit_tools-0.1.4.tar.gz
| Download URL | calfkit_tools-0.1.4.tar.gz |
|---|---|
| Size | 771.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b79634ee751d2b6977e2c33ad5f7f33b55dc96a1a7ff48231aa96ff843d5eb80
|
|
BLAKE2b-256 checksum How to use checksums |
f9e45e4544324772501dce65d4229aa36a73b919366320b577a48b0c3ff1a4ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logRelease files / calfkit_tools-0.1.4-py3-none-any.whl
| Download URL | calfkit_tools-0.1.4-py3-none-any.whl |
|---|---|
| Size | 531.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5789758f855eba3435b3cc900dbbe07a34695af0411d2eb93914411715ea036c
|
|
BLAKE2b-256 checksum How to use checksums |
8f99c08af4824c1f310723342688fae6ac8536fd3642adf62d89accee2896bd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logSecurity for calfkit-tools 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for calfkit_tools-0.1.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.