SuperAPI AI Directory

mercury-agent

Soul-driven personal AI agent with permission-hardened tools, token budgets, and multi-channel access (CLI or Telegram). MIT.

Open website

About this tool

Mercury is an open-source personal AI agent, licensed under the MIT License and developed by cosmicstack-labs. Its core philosophy is "soul-driven": the agent has a personality written by the user, memory stored on the local disk, and a permission system located between the model and the user's machine. Users can interact with the same agent through the terminal, Telegram, Discord, Slack, or Signal, sharing the same memory and permissions, and the agent runs continuously as a background process owned by the user.

Main capabilities

  • Permission hardening: file access is scoped by folder, shell commands go through a blacklist and approval steps, and outbound requests are checked against private address ranges. Users can choose to be asked each time or to run freely, and members of shared channels cannot expand permissions on their own.
  • Persistent memory: after each conversation, up to three persistent facts are automatically extracted (preferences, goals, projects, decisions), with confidence scores, and conflicts with existing knowledge are resolved. Memory is stored in a SQLite file under ~/.mercury and can be inspected, paused, or cleared via /memory.
  • Token budget: a daily token budget is enforced for each round of conversation. As usage rises, Token Saver mode trims context and can route routine work to cheaper models.
  • Single runtime: one background process manages all channels, bots, and the web dashboard. The terminal is just a client, and closing the terminal will not stop running tasks or bots.
  • Mercury Code: a full-screen coding environment within the repository, supporting AUTO mode (plan and build in one pass, ask once before major changes), verified completion (report completion only after build, test, or type check passes), live planning, background subagent tasks, and a workspace view.
  • Mercury Bots: persistent expert agents with independent personalities, models, memory, permissions, and daily budgets. They can run on schedules, hand off work to each other, and deliver completed files to ~/Documents/Mercury/<Bot name>/. Fleet mode is supported, with a master bot delegating tasks to the team.
  • Memory system: 10 memory types (identity, preferences, goals, projects, habits, decisions, constraints, relationships, events, reflections), consolidated hourly into profiles and active-state summaries, with outdated and low-confidence facts aging out.
  • Skills: community skills can be installed from skills.mercuryagent.sh, based on the Agent Skills specification. Skills are not audited, and must be reviewed yourself.
  • Web dashboard: located at http://127.0.0.1:6174,绑定 localhost, providing chat, bot cockpit, memory browser, providers, skills, permissions, plans, and usage management.
  • Kanban and scheduler: the kanban processes cards one by one in dependency order, with per-card token tracking; the scheduler supports cron schedules and one-time delays.

How to use Installation: a one-line install script downloads a standalone binary for the user's operating system and CPU and verifies the checksum, no Node.js required. It can also be installed via npm, which requires Node.js 22 or newer. The first run starts a short setup wizard that asks for the username, agent name, Mercury Cloud or your own API key, and optional channels (such as Telegram). After that, Mercury starts the background service and opens the terminal UI. The upgrade command is mercury upgrade.

At runtime it runs as a login service (LaunchAgent on macOS, systemd on Linux, Task Scheduler on Windows) and automatically restarts after a crash. All channels communicate with the same agent, the same permissions, and the same memory. The terminal is a client: mercury attaches to the runtime, and mercury code opens a coding session alongside it. When multiple channels are configured, notifications are sent in order to the first available channel: Signal, Telegram, Discord, Slack, terminal.

Use cases Suitable for personal AI assistant scenarios that require long-term operation, cross-channel access, persistent memory, and strict permission control. It can be used for file management, command execution, code development and delivery, web research, scheduled tasks, team collaboration (via Bots), and more.

Limitations and notes

  • Mercury is an AI agent and can make mistakes, especially in Allow All mode, where its behavior needs to be reviewed.
  • Community skills are unaudited and should be reviewed before installation.
  • Released binaries are unsigned; distributing your own builds on macOS requires signing and notarization first.
  • Memory and all stored data are located in ~/.mercury/, not in the user's project.
  • If a provider key is rejected, that provider is skipped until the key is fixed.
  • Building from source requires Node.js 22+, and generating a standalone binary also requires Bun 1.3+.
  • Contributions must follow the principles of permissions, no terminal assumptions, token efficiency, soft failure, and test loops.

Other information

  • Official website, documentation, quick start, changelog, Discord, and Simplified Chinese resourcescan be accessed through the project repository.
  • Security vulnerabilities are reported via SECURITY.md.
  • License: MIT © Cosmic Stack.