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

Metadata

Release files for toolang 0.4.0b1

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

Built distribution (wheel)

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

Total release size: 4.9 MB

Release files / toolang-0.4.0b1.tar.gz

Download URL toolang-0.4.0b1.tar.gz
Size 3.6 MB
Tags Source
SHA-256 checksum
How to use checksums
24f1c28090ca3a12f72cd850cf92e427d6d505f9c15548fcf6c1e2e80b4926a7
BLAKE2b-256 checksum
How to use checksums
9a42f3f20f1d236001715daf1c88717c1b9dbffb15f6433d4e1fc19127df9eb5
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 24, 2026.

Transparency log

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

Download URL toolang-0.4.0b1-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
082cdd7e6e8e9fa8c320f5965aeff31fa74bc59b5e752d0d945577a7621886db
BLAKE2b-256 checksum
How to use checksums
40ff960a3e67f9e58ffb5541ef09664ea3e983acd582957da300590afaf9c52a
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 24, 2026.

Transparency log

Security for toolang 0.4.0b1

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.0b1.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 24, 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