Soul-driven. Token-efficient. Always on.

Your personal AI agent with 21 built-in tools, skill system, multi-channel access, and hardened permissions. Runs 24/7 from your terminal or Telegram.

terminal

Built Different

Not another chatbot. An orchestrator that works for you.

Soul-Driven Identity

Mercury isn't a blank slate. Its personality is defined by markdown soul files — soul.md, persona.md, taste.md, heartbeat.md — that you control. No corporate wrapper. Your agent, your rules.

Token-Efficient

Daily token budgets with enforcement. Only soul + persona injected per request (~400 tokens). Skill summaries loaded progressively. Auto-concise mode when budget exceeds 70%.

Always On

Cron scheduling, delayed tasks, and a heartbeat system that monitors budget and upcoming tasks. Mercury runs 24/7 and notifies you proactively via Telegram or CLI.

📡

Multi-Channel

CLI with readline and text streaming. Telegram with typing indicators, HTML formatting, and file uploads. More channels coming: Signal, Discord, Slack, WhatsApp.

🧩

Skill System

Install community skills with a single command. Skills auto-load into context, get elevated permissions, and can be scheduled as recurring tasks. Based on the Agent Skills specification.

🛡

Permission Hardened

Folder-level read/write scoping. Command blocklist (sudo, rm -rf, etc. — never executed). Pending approval flow. Skill elevation with granular allowed-tools. No surprises.

Up and Running in 60 Seconds

1

Install

npm i -g @cosmicstack/mercury-agent

Or use npx @cosmicstack/mercury-agent — no install needed.

2

Setup

mercury

First run triggers the onboarding wizard. Enter your name, an API key, and optionally a Telegram bot token. Takes 30 seconds.

3

Run

mercury start

Mercury wakes up, loads your soul files, restores scheduled tasks, and is live. Start talking.

See It Work

A real Mercury session — tool calls, streaming, files, and scheduling.

mercury

21 Built-In Tools

Plus extensible skills, scheduling, and memory.

📂 Filesystem

  • read_file — Read file contents
  • write_file — Write to existing file
  • create_file — Create new files (+ dirs)
  • edit_file — Search & replace text
  • list_dir — List directory contents
  • delete_file — Delete a file
  • send_file — Send file to user (Telegram upload)

🐚 Shell

  • run_command — Execute shell commands
  • approve_command — Permanently approve a command

📦 Git

  • git_status — Working tree status
  • git_diff — Show file changes
  • git_log — Commit history
  • git_add — Stage files
  • git_commit — Create commits
  • git_push — Push to remote

🌐 Web

  • fetch_url — Fetch & strip HTML to text

🧩 Skills

  • install_skill — Install from URL or content
  • list_skills — Show installed skills
  • use_skill — Invoke a skill

⏰ Scheduler

  • schedule_task — Cron or one-shot tasks
  • list_scheduled_tasks — View all tasks
  • cancel_scheduled_task — Cancel a task

📊 System

  • budget_status — Check token budget

🧠 Memory

  • Short-term — Recent conversation per channel
  • Long-term — Auto-extracted facts with dedup
  • Episodic — Timestamped interaction log

Honest Comparison

We built Mercury because nothing else did all of this.

Feature Mercury Open Interpreter Claude Code
Soul / Persona System 4 markdown files Custom instructions CLAUDE.md
Token Budget Enforcement Daily budget + override
Multi-Channel (CLI + Telegram) Both + more coming All All
Skill System (Agent Skills spec) Install, invoke, schedule
Cron + Delayed Scheduling Persisted, auto-restore
Permission Hardening Blocklist + scope + approval Confirmation prompts Permission prompts
Proactive Notifications Heartbeat + task alerts
Auto Fact Extraction With dedup
Provider Fallback Auto with last-successful Manual config Anthropic only
File Upload (Telegram) Yes — auto type detection
Streaming Output (CLI) Real-time text stream Real-time text stream Real-time text stream
Headless / 24-7 Mode Built-in
Language / Runtime TypeScript / Node.js Python TypeScript / Node.js
Open Source MIT LGPL-2.1 Source-available

Under the Hood

Minimal runtime, maximum capability.

Core
TypeScript + Node.js 20+
ESM, tsup build, zero native deps
AI SDK
Vercel AI SDK v4
streamText + generateText, 10-step agentic loop
Providers
DeepSeek · OpenAI · Anthropic
Fallback chain with last-successful tracking
Memory
Flat-file JSONL/JSON
Short-term, long-term, episodic — no database
Telegram
grammY
Long polling, typing loop, HTML formatting, file uploads
Runtime Data
~/.mercury/
Config, soul, memory, permissions, skills, schedules — all in your home dir

Ready to Deploy Your Agent?

npm i -g @cosmicstack/mercury-agent && mercury

That's it. 60 seconds to your own AI agent.