✨ From vibe coding to vibe deployment. UBOS MCP turns ideas into infra with one message.

Learn more
Andrii Bidochko
  • Updated: February 16, 2026
  • 8 min read

Introducing klaw.sh: Open‑Source Kotlin CLI Tool for AI Agent Orchestration

klaw.sh illustration

klaw.sh is an open‑source Kotlin CLI tool that brings Kubernetes‑style orchestration to AI agents, letting developers deploy, scale, and manage intelligent workloads with a single binary and zero runtime dependencies.

Why klaw.sh is the Next‑Generation Tool for AI‑Powered Automation

If you’ve ever wrestled with the complexity of deploying AI agents across multiple environments, you’ll recognize the pain point instantly. Traditional container orchestrators excel at managing stateless services, but they fall short when the workload is an autonomous “thinking” agent that needs to run code, fetch data, and interact with users in real time. klaw.sh fills that gap by offering a lightweight, Kotlin‑based command‑line interface that mirrors the familiar kubectl experience while speaking the language of modern LLM providers.

{{IMAGE}}

Developers, DevOps engineers, and AI enthusiasts can now spin up a full‑featured AI agent fleet from a laptop or a production‑grade cluster with a single command. The project’s rapid adoption is evident on GitHub, where the repository has already gathered a vibrant community of contributors.

Project Overview and Purpose of klaw.sh

At its core, klaw.sh is designed to be the “Kubernetes for AI agents.” It abstracts the lifecycle of an agent—creation, configuration, execution, and monitoring—into concise CLI commands. The tool is built on top of a Kotlin runtime that compiles to a single native binary, eliminating the need for Docker, virtual environments, or heavyweight runtimes.

The primary goals of the project are:

  • Provide a zero‑dependency binary that works on any modern Linux, macOS, or Windows host.
  • Enable seamless integration with leading LLM providers (OpenAI, Anthropic, and the each::labs Router).
  • Offer a familiar, declarative syntax for defining agents, namespaces, and scheduled tasks.
  • Support both single‑node development mode and distributed, controller‑node architectures for enterprise scaling.

By treating AI agents as first‑class citizens in an orchestration platform, klaw.sh empowers teams to automate repetitive coding, data‑scraping, and even customer‑support workflows without writing boilerplate glue code.

Why Kubernetes‑style orchestration matters for AI agents

Traditional CI/CD pipelines excel at moving code, but they don’t manage the “thinking” part of modern applications. AI agents require:

  1. Dynamic scaling – Agents may need to spin up on demand when a user query spikes.
  2. Isolation – Each agent should run in its own sandbox to avoid credential leakage.
  3. Observability – Logs, metrics, and state must be centrally accessible.
  4. Scheduling – Recurring tasks (e.g., daily report generation) should be declaratively defined.

klaw.sh mirrors Kubernetes primitives (clusters, namespaces, cron jobs) while translating them into AI‑specific concepts such as skills and agents. This alignment reduces the learning curve for teams already familiar with container orchestration.

Key Features and Technology Stack

The tool packs a surprising amount of functionality into a compact binary. Below is a MECE‑structured breakdown of its capabilities:

Core Orchestration Features

  • Multi‑Provider LLM Router – Access 300+ models through a single API key.
  • Namespace & Cluster Management – Isolate agents per team, project, or environment.
  • Distributed Mode – Controller‑node architecture for horizontal scaling.
  • Cron‑Based Scheduling – Define recurring AI tasks with familiar cron syntax.
  • Channel Flexibility – Interact via CLI, TUI, Slack, Telegram, or custom HTTP endpoints.

Built‑in Tools & Skills

  • bash – Execute shell commands with a safe timeout.
  • read / write – Manipulate files directly from the agent.
  • web_fetch – Retrieve and parse web content.
  • agent_spawn – Dynamically create sub‑agents for specialized tasks.
  • cron – Schedule periodic jobs without external schedulers.

Technology Stack

Component Technology
Language Kotlin (compiled to native binary)
CLI Framework Clikt
TUI Kotlin‑based TUI library (similar to Bubble Tea)
LLM SDKs OpenAI, Anthropic, each::labs HTTP clients
Transport gRPC & JSON over TCP

All of these components are bundled into a single executable, meaning you can drop klaw onto any server without worrying about runtime compatibility.

Installation and Quick‑Start Guide Highlights

Getting started with klaw.sh is intentionally frictionless. Below is a distilled version of the official quick‑start, perfect for developers who want to see results in under five minutes.

  1. One‑line installer (Linux/macOS):
    curl -fsSL https://klaw.sh/install.sh | sh

    This script downloads the latest binary, verifies the checksum, and places it in /usr/local/bin.

  2. Configure an LLM provider – export your API key:
    export OPENROUTER_API_KEY=your_key_here

    You can also use EACHLABS_API_KEY or ANTHROPIC_API_KEY depending on your preference.

  3. Launch an interactive chat to test the agent:
    klaw chat --model gpt-4o

    The TUI will appear, allowing you to type natural language prompts and receive instant LLM responses.

  4. Deploy a full platform with Slack integration (optional):
    export SLACK_BOT_TOKEN=xoxb-...
    export SLACK_APP_TOKEN=xapp-...
    klaw start

    This spins up a controller, registers a Slack bot, and begins listening for commands.

  5. Scale out with distributed mode:
    klaw controller start --port 9090

    On each worker node:

    klaw node join controller:9090 --token <token>

    Tasks are automatically dispatched to the least‑loaded node.

All configuration lives in ~/.klaw/config.toml, where you can define default models, namespaces, and logging levels. The file is human‑readable and can be version‑controlled alongside your infrastructure code.

Community, Contribution, and Licensing Details

klaw.sh thrives on an open‑source ethos. The repository on GitHub is public, issues are triaged weekly, and a Discord channel provides real‑time support. Contributions are welcomed via pull requests, and a CONTRIBUTING.md file outlines the code style, testing requirements, and release process.

The project is released under the each::labs License, which permits:

  • Free use for internal business, personal projects, and consulting.
  • Commercial licensing for multi‑tenant SaaS or white‑label distribution.

If you’re interested in sponsoring development or becoming a certified partner, the UBOS partner program offers co‑marketing opportunities and early access to upcoming integrations.

Take the Next Step with klaw.sh

Ready to experiment? Grab the source code, build the binary, and start orchestrating AI agents today:

Visit the GitHub Repository

While you’re exploring, consider how klaw.sh can complement the broader AI ecosystem offered by UBOS. For instance, you can embed a ChatGPT and Telegram integration to surface agent outputs directly to your team’s chat channels.

Looking for a ready‑made AI workflow? Check out the UBOS templates for quick start, such as the AI SEO Analyzer or the AI Article Copywriter. These templates demonstrate how a klaw.sh‑managed agent can feed content directly into a publishing pipeline.

If you need a conversational interface, the AI Chatbot template pairs nicely with klaw.sh’s agent_spawn capability, allowing you to spin up specialized sub‑agents on demand.

For developers who love Telegram bots, the GPT‑Powered Telegram Bot showcases a real‑world use case where klaw.sh handles task scheduling while the bot delivers results to end users.

And when you’re ready to add multimedia, the AI Video Generator can be orchestrated as a downstream agent that consumes text generated by klaw.sh and produces video assets automatically.

Explore the full suite of UBOS capabilities to accelerate your AI initiatives:

Conclusion: A New Paradigm for AI Agent Management

klaw.sh redefines how developers think about AI workloads. By marrying the declarative power of Kubernetes with the flexibility of modern LLMs, it eliminates the “glue code” that traditionally separates model APIs from production pipelines. Whether you’re a solo developer prototyping a code‑review bot or an enterprise team orchestrating dozens of research agents, klaw.sh offers a consistent, reproducible, and extensible foundation.

“The simplicity of a single binary combined with the richness of Kubernetes‑style abstractions makes klaw.sh a game‑changer for AI ops.” – Senior DevOps Engineer, Open‑Source Contributor

Take advantage of the thriving community, the permissive license, and the seamless integrations with UBOS’s AI ecosystem to accelerate your projects. The future of AI orchestration is here—grab the klaw.sh repository, spin up your first agent, and watch your automation dreams become reality.


Andrii Bidochko

CTO UBOS

Andrii Bidochko is an AI entrepreneur and researcher focused on AI agents, reinforcement learning, and autonomous systems. He writes about the technologies shaping the future of machine intelligence, from frontier models and agent architectures to real-world AI applications.

Sign up for our newsletter

Stay up to date with the roadmap progress, announcements and exclusive discounts feel free to sign up with your email.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.