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.0a11

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.0a11
File Size Uploaded Provenance Actions
toolang-0.4.0a11.tar.gz 3.3 MB With provenance Details for toolang-0.4.0a11.tar.gz

Built distribution (wheel)

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

Total release size: 4.6 MB

Release files / toolang-0.4.0a11.tar.gz

Download URL toolang-0.4.0a11.tar.gz
Size 3.3 MB
Tags Source
SHA-256 checksum
How to use checksums
db3ea855cac4e059a51f7e08aae88a6e5f32a69d1a0700bf6b259ab72dd32b3d
BLAKE2b-256 checksum
How to use checksums
9bea4a975567c207462481d851ace102f459040a011f3299761ffd0b54baded2
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.0a11-py3-none-any.whl

Download URL toolang-0.4.0a11-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e4c6d7077bc5fb739667a88b4da75ddd307f48b5eb2aab8703abef1247e1b7e3
BLAKE2b-256 checksum
How to use checksums
938b2c12f15f4cc306726c3e6e98dbb35df858ffb393d7c8fe74c71544c888eb
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.0a11

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.0a11.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