TETSUO

Open Source Autonomous AI Agent Framework

A free, self-hosted AI agent with multi-agent orchestration, persistent task queue, approval workflows, and event triggers. 25 files, ~6900 lines of TypeScript.

SYSTEM ACTIVE

CORE CAPABILITIES

What makes tetsuobot an autonomous AI agent

001

Multi-Agent Orchestration

Complex tasks are automatically decomposed into subtasks and executed in parallel. A planner breaks down work, a router picks the optimal model for each piece, and a coordinator synthesizes results.

002

Persistent Task Queue

Tasks survive restarts with full state machine support. Track progress with step-level visibility, priority ordering, per-task scratchpads, and automatic crash recovery.

003

Approval Workflow

The agent proposes actions and waits for your decision. Risk-classified proposals (low to critical), one-click approve/reject, auto-expiry, and non-blocking execution.

004

Event Triggers

Reactive automation that responds to events. Watch files, receive webhooks, run on schedules, poll calendars, or monitor incoming emails — all without being prompted.

005

Cost Tracking & Budgets

Per-call token counting with model-specific pricing. Set daily and weekly budget limits with optional hard stop mode. View real-time spend and usage history in the dashboard.

006

8-Panel Admin Dashboard

Full web interface to control everything: security, tools, integrations, task queue, active agents, cost tracking, triggers, and audit logs. Dangerous changes require confirmation.

CONNECT ANYWHERE

Chat with your AI agent via Telegram, Discord, web, or terminal

💬

Telegram

Full support for text and photo messages with automatic message splitting for long responses.

🎮

Discord

Direct messages and channel filtering. Talk privately or in your server.

🌐

Web Chat

Real-time WebSocket connection for browser-based interaction.

⌨️

Command Line

Built-in interactive terminal with colored output. Always available.

INTELLIGENT MODEL ROUTING

Each subtask is routed to the optimal model based on complexity, privacy, and budget

Fast Tier

Haiku or GPT-4o-mini for simple lookups, formatting, and quick responses. Lowest cost, fastest execution.

LOW COST

Reasoning Tier

Opus for complex analysis, architecture decisions, and tasks requiring deep reasoning. Maximum capability.

MAX POWER

Local Tier

Ollama for private data and zero-cost operation. Run completely offline with full privacy using local models.

FREE & PRIVATE

BUILT-IN TOOLS

30+ automation tools across 10 categories for files, web, tasks, triggers, and more

📁

Shell & Files

Core
Run Shell Commands
Execute terminal commands with safety filters, timeouts, and output limits.
Read & Write Files
Create, read, and modify files within the secure workspace folder.
List Directories
Browse folder contents and navigate the file system safely.
🌐

Web & Browser

Core
Web Fetch
Make HTTP requests to public URLs with built-in protection against internal network access.
Browser Automation
Navigate pages, take screenshots, click elements, and type text in a headless browser.
🧠

Memory

Core
Remember
Store facts, preferences, tasks, and notes with tags and importance scores.
Recall
Search long-term memory by keywords, weighted by importance.

Scheduling

Core
Schedule Jobs
Create and manage recurring tasks using cron expressions.
Edit Heartbeat
Add, remove, or list items in the proactive task checklist.
📧

Email

Optional
Read Emails
Fetch recent or unread emails with folder selection and filtering.
Search Emails
Find emails by sender, subject, or date range.
Send Emails
Compose and send messages with CC support. Works with Gmail, Outlook, Yahoo, or any provider.
📱

Social Media

Optional
GitHub
List repositories, manage issues, and view pull requests.
Mastodon
Read your timeline, post toots, and check notifications.
Reddit
Read subreddits, submit posts, and check your inbox.
🖥️

System Control

Optional
Clipboard
Read from and write to your system clipboard.
Notifications
Send desktop toast notifications to get your attention.
Open Apps & URLs
Launch applications or open links in your default browser.
System Info
Check OS, CPU, RAM, disk space, and uptime.
Screenshots
Capture your desktop to a file.
📋

Tasks & Orchestration

Core
Create Task
Add tasks to the persistent queue with priority levels.
Task Status
Check progress, state, and token usage for any task.
Task Action
Pause, resume, cancel, or retry tasks in the queue.
🤖

Agents & Approvals

Core
Agent Status
Monitor active sub-agents, their model routes, and stats.
Check Approvals
List pending approval requests with risk levels.
Resolve Approval
Approve or reject pending action proposals.
💰

Cost Tracking

Core
Cost Report
View token usage and spend by model, day, or task.
Set Budget
Configure daily and weekly spending limits with hard stop option.

Event Triggers

Core
Create Trigger
Set up file watches, webhooks, cron schedules, calendar polls, or email monitors.
List Triggers
View all configured triggers and their current status.
Delete Trigger
Remove triggers that are no longer needed.

ENTERPRISE-GRADE SECURITY

Sandboxing, authentication, and audit logging enabled by default

🔒

Sandboxed Workspace

All file operations are locked to a specific folder. No access to system files, no escaping via sneaky paths.

🛡️

Network Protection

Web requests can only reach public URLs. Private networks, localhost, and cloud metadata endpoints are blocked.

Shell Hardening

20+ patterns block dangerous commands like reverse shells, credential theft attempts, and system-breaking operations.

🔑

Token Authentication

A 256-bit token is auto-generated on setup. All API requests must include it. Constant-time comparison prevents timing attacks.

🧬

Injection Guards

External content (web pages, emails, social posts) is wrapped with markers that tell the AI to treat it as data, not instructions.

📋

Audit Logging

Every tool call is logged with timestamps, inputs, results, and whether it was blocked. Review everything in the dashboard.

⚠️

Double Confirmation

Dangerous settings require you to type CONFIRM twice before changes take effect. No accidental unlocks.

📏

Rate Limits

Configurable limits on API requests, LLM calls, and tool output size prevent runaway costs and context flooding.

GET STARTED IN MINUTES

Download, configure, and launch your autonomous AI agent

1

Download from GitHub

Clone or download the repository to get started. All source code is open and available for inspection.

github.com/kodokalabs/tetsuo.26
2

Run the Setup Wizard

Double-click the setup file for your platform. The wizard checks for Node.js, installs dependencies, and walks you through every option with clear explanations.

WINDOWS MACOS LINUX
3

Choose Your AI Provider

Enter your API key for Anthropic or OpenAI, or select Ollama for free local inference. You can switch providers later without losing your data.

4

Connect Your Channels

Add your Telegram bot token or Discord credentials. Set which user IDs are allowed to talk to the agent. The wizard warns you if you leave this open.

5

Set Your Autonomy Level

Low, medium, or high — controls how independently the agent acts. Higher levels require double confirmation so you know what you're enabling.

6

Launch

Your configuration is saved and locked down. Start the agent and begin chatting. Use the admin dashboard to tweak settings anytime.

TECHNICAL SPECIFICATIONS

Built with Node.js, TypeScript, and modern security standards

Version 0.2.0
Codebase 25 FILES / ~6900 LINES
Runtime NODE.JS 20+
Language TYPESCRIPT (ESM)
Gateway Port 18789
Admin Dashboard 8 PANELS
Authentication 256-BIT BEARER TOKEN
Status OPERATIONAL

CHAT COMMANDS

Control your agent directly from any chat channel

/approve <id> Approve a pending action proposal
/reject <id> Reject a pending action proposal
/pending List all pending approval requests
/tasks View all tasks with their current status
/cost Show today's token spend and budget
/status Agent info, uptime, and active workers
/quit Gracefully shut down the agent

FREQUENTLY ASKED QUESTIONS

Everything you need to know

What is tetsuobot and how does it work?

tetsuobot is an open-source autonomous AI agent framework with multi-agent orchestration. Complex tasks are automatically decomposed by a planner, routed to optimal models (fast/balanced/reasoning/local) by a router, executed in parallel by worker agents, and synthesized into a cohesive response. It features a persistent task queue, approval workflows, event triggers, and cost tracking.

What is multi-agent orchestration?

Multi-agent orchestration means complex tasks are broken into subtasks that can run in parallel across different AI models. A planner decomposes your request into a dependency graph, a router picks the best model tier for each subtask (Haiku for simple lookups, Sonnet for standard work, Opus for complex reasoning, or local models for privacy), workers execute in parallel, and a coordinator combines all outputs into a final response.

How does the approval workflow work?

When the agent wants to perform a potentially risky action, it creates an approval request with a risk classification (low/medium/high/critical). You can approve or reject via chat commands (/approve, /reject) or one-click in the dashboard. Approvals auto-expire after 30 minutes, and the agent continues other work while waiting — it's non-blocking.

What are event triggers?

Event triggers let the agent respond to events automatically, not just messages. Five trigger types are supported: file_watch (fires when files change), webhook (fires on HTTP POST, e.g., from GitHub), cron (fires on schedule), calendar (polls iCal URLs for upcoming events), and email_watch (fires when matching emails arrive). Triggers can send messages or create intelligent tasks.

How does cost tracking work?

Every LLM call is tracked with model-specific token counting and pricing. You can view spend per model, per day, per task, and per sub-agent. Set daily or weekly budget limits — when exceeded, the agent can either warn you or hard-stop all LLM calls. The dashboard shows real-time spend and usage history charts.

Is tetsuobot free and open source?

Yes, tetsuobot is completely free and open-source (25 files, ~6900 lines of TypeScript), available on GitHub. You can run it locally with Ollama for zero API costs. Cloud providers like Anthropic or OpenAI require their respective API keys and usage fees, but the framework itself is always free.

What platforms does tetsuobot support?

tetsuobot runs on Windows, macOS, and Linux with Node.js 20+. It communicates via Telegram, Discord, WebSocket web chat, or command line. The admin dashboard is accessible at http://127.0.0.1:18789/admin. Setup wizards are provided for all platforms.

How secure is tetsuobot?

All security features are enabled by default: sandboxed file operations (path-jailed to workspace), SSRF protection (DNS-resolving, blocks private IPs), shell hardening (20+ regex patterns), 256-bit token authentication, prompt injection guards (cryptographic boundary markers), rate limiting, and JSONL audit logging. Dangerous dashboard changes require typing CONFIRM.