Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Toolang

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 has not been tested 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 AGENT                # Create an agent
too clone REF AGENT          # Clone an agent
too AGENT info               # Show agent information
too AGENT home               # Open a shell in the agent home
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 PROJECT_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 talk                     # 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

Metadata

Release files for toolang 0.4.0a10

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

Source distribution (sdist)

Source distribution for toolang 0.4.0a10
File Size Uploaded Provenance Actions
toolang-0.4.0a10.tar.gz 3.3 MB With provenance Details for toolang-0.4.0a10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for toolang 0.4.0a10
File Interpreter ABI Platform Actions
toolang-0.4.0a10-py3-none-any.whl Python 3 none any Details for toolang-0.4.0a10-py3-none-any.whl

Total release size: 4.6 MB

Release files / toolang-0.4.0a10.tar.gz

Download URL toolang-0.4.0a10.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
349c59086a85e3b7ea05f263b006a8c4f45cd12ba48cc6011cfed9b389356d79
BLAKE2b-256 checksum
How to use checksums
7551fc8654e9ba35db590e2d8d1d0b8743362ddae4d366bd068b7307fbb13528
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 20, 2026.

Transparency log

Release files / toolang-0.4.0a10-py3-none-any.whl

Download URL toolang-0.4.0a10-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
cc3284259593aaac29288add61fb842b2d81cbe6f3382f352f6be266e0461d35
BLAKE2b-256 checksum
How to use checksums
c5348f28b1b3daa0507cf3c7efdb5a7bf970fa19f56cbeae22e83eb33885bea8
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 20, 2026.

Transparency log

Security for toolang 0.4.0a10

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.

Select from 2 files

Attestation for toolang-0.4.0a10.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 20, 2026.

Transparency log

A 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.

Release history Release notifications | RSS feed

This release
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