This release is a pre-release and may not be stable for production use.
Toolang
A language and runtime for agents and humans.
The language expresses agent loops with fine-grained control using a constrained form of natural language — readable by both humans and agents, yet precise enough for the runtime to execute.
Install
Toolang runs on macOS and Linux with Python 3.11+. Windows is not supported yet.
Install Toolang with uv or pip; the main command is toolang, with too as a shorter alias:
uv tool install toolang # Or: pip install toolang
too --version # Same as: toolang --version
too --help # Show common commands
Models
Toolang works out of the box if you already have an API key for a supported model provider.
To see which models are ready to use:
too models # List models ready to use
To use another provider, set its API key in your shell:
too providers --all # List all supported providers
Toolang maintains a model catalog based on models.dev and discovers local models served by Ollama and llama.cpp. Updated and full catalogs are available at openhat-ai/models.
Shared agents
Run an agent directly from a URL or GitHub shorthand:
too https://toolang.ai/lex.too chat # Run a .too file from a URL
too gh:briceyan/gus chat # github.com/briceyan/agents/blob/main/gus.too
Lex helps you practice English. Gus is a coding agent that also contributes to Toolang.
Toolang downloads the .too source and its declared dependencies, then runs the agent locally.
Local agents
Create an agent from scratch:
too new alice
Or clone a local or shared agent:
too clone alice bob
too clone https://toolang.ai/lex.too lex
too clone gh:briceyan/gus gus
Chat with your agent:
too alice chat
Scripts
Toolang supports standalone .too scripts. Here's a simple example that translates text into Chinese:
agic:
Translate the following text into Chinese:
{{_}}
Save it as translate.too and run it with some text:
too translate.too -- Toolang, a language and runtime for agents and humans
Use too init to create a starter script that you can rename and customize:
too init PROJECT_DIR
too PROJECT_DIR/aid.too --help
Language
Toolang models the agent loop as a fundamental construct called agic, analogous to a function in traditional programming languages. Agics can be called, reused, and composed to build complex behavior from smaller, modular units.
Toolang also introduces flow to organize agics and other operations into explicit execution steps, expressing plans and strategies for solving complex tasks as structured, reusable workflows.
Agics, flows, and other language constructs are designed to be read and written by both humans and agents, establishing a common language for human–agent collaboration.
The following examples showcase Toolang’s key features:
| Example | Description |
|---|---|
hello-world.too |
Hello world in Toolang. |
signatures.too |
Agic signature forms, from shorthand to fully typed. |
structured-output.too |
Define a struct and use it for structured output. |
caps.too |
Define and use caps in agics. |
hands.too |
Delegate work to specialized runnables. |
handoffs.too |
Hand off tasks between runnables. |
minimal.too |
An agent in 14 characters. |
developer.too |
Define a complete coding agent with reusable caps. |
For the full language syntax, see the syntax reference.
The Tree-sitter grammar and parser packages for Python, JavaScript, and Rust are available in tree-sitter-toolang.
Common commands
Below are some common commands. Run too --help for usage details, or too more for additional commands.
too new NAME # Create an agent
too clone SOURCE [NAME] # Clone an agent
too AGENT info # Show agent information
too AGENT cd # Enter an agent home
too ls # List agents and their status
too AGENT start # Start an agent in the background
too AGENT stop # Stop an agent
too AGENT chat # Chat directly with an agent
too init DIR # Initialize Toolang in a directory
too run FILE.too [RUNNABLE] # Execute a .too file
too hub start # Start the hub in the background
too convo list # List conversations
too talk CONVO # Open a conversation by ID
too talk AGENT # Open a conversation with an agent
too talk all # Open a conversation with the team
too caps # List available caps
too tools # List available tools
too models # List available models
too providers # List available model providers
too AGENT inspect # Inspect agent runs
too [AGENT] top # Monitor active runs
too ps # Show agents and hub status
Links
- Website: toolang.ai
- Docs: toolang.ai/docs
- GitHub: github.com/openhat-ai/toolang
- Changelog: CHANGELOG.md
Metadata
Release files for toolang 0.4.0b4
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 |
|---|---|---|---|---|
| toolang-0.4.0b4.tar.gz | 3.7 MB | With provenance | Details for toolang-0.4.0b4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toolang-0.4.0b4-py3-none-any.whl | Python 3 | none | any | Details for toolang-0.4.0b4-py3-none-any.whl |
Total release size: 5.0 MB
Release files / toolang-0.4.0b4.tar.gz
| Download URL | toolang-0.4.0b4.tar.gz |
|---|---|
| Size | 3.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c8ad1e90afff679304a6495fab1b0e7d517b61cf29269bced5ec66563909b649
|
|
BLAKE2b-256 checksum How to use checksums |
356eb1117efbb2451c518cddd669170714a6131e52f1cdb0c552619d99fae2c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.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 Oct 30, 2026.
Transparency logRelease files / toolang-0.4.0b4-py3-none-any.whl
| Download URL | toolang-0.4.0b4-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
306cdd16e2522e72be552fc18885d0891b72d9508605738487e6d60fb0c57cae
|
|
BLAKE2b-256 checksum How to use checksums |
f92e0b7c74af3377e691f429d402d17220b3e64c28f0aee4731470ae84df1ec6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.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 Oct 30, 2026.
Transparency logSecurity for toolang 0.4.0b4
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
Both files in this release have been uploaded with provenance metadata.
Attestation for toolang-0.4.0b4.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 Oct 30, 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.