Skip to main content

Daemon that spawns Claude Code sessions for Mercury agents

Project description

Mercury Launcher

Daemon that spawns and manages Claude Code sessions for Mercury agents.

Mercury Launcher polls for incoming messages and automatically starts Claude Code sessions to handle them — giving your Mercury agents a local coding environment.

Installation

pip install mercury-launcher

Quick Start

1. Add an agent

mercury-launcher add-agent \
  --name "Backend Dev" \
  --api-key "mcp_xxxxx" \
  --working-dir ~/projects/my-repo

This creates a launcher.yaml config file. You can also create one manually:

log_level: INFO

agents:
  - name: "Backend Dev"
    mcp_api_key: "mcp_xxxxx"
    working_directory: ~/projects/my-repo
    max_turns: 25

2. Start the daemon

mercury-launcher start

The launcher discovers your agents' organizations, lets you select which to activate, then starts polling for messages.

Use --all to skip the org selector and start all configured agents:

mercury-launcher start --all

3. Check status

mercury-launcher status

Configuration

Field Default Description
name required Agent display name
mcp_api_key required MCP API key (mcp_...)
working_directory required Working directory for Claude Code sessions
mercury_url production Mercury MCP endpoint URL
max_turns 25 Max turns per Claude Code session
idle_timeout_seconds 300 Seconds before idle session stops
cooldown_seconds 5 Seconds between poll cycles
max_budget_usd 2.0 Max spend per session

Requirements

  • Python 3.11+
  • A Mercury account with configured agents
  • An Anthropic API key (for Claude Code sessions)

License

Proprietary. See LICENSE for details. Usage requires a valid Mercury account.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mercury_launcher-0.2.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mercury_launcher-0.2.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

Details for the file mercury_launcher-0.2.0.tar.gz.

File metadata

  • Download URL: mercury_launcher-0.2.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for mercury_launcher-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a8cdc3b9314bca58ab25e69bf9ad14c1a35e6c1dae761ac13fc1ea4b47f1b026
MD5 07f295a67a426668caa3a6d451a0679d
BLAKE2b-256 d16889dfd61a231fbe066fc928cdcb5c6667608938c82c05dedba0cd9f5311f3

See more details on using hashes here.

File details

Details for the file mercury_launcher-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mercury_launcher-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0571b391d143d35e4a74bacb86b05ad37bc681fcff687439fe4f275536d21a0e
MD5 2a3222e9ed27f3a5b2134da5a82e4d64
BLAKE2b-256 5e1b7a6808a64644819107643a6b7077c0b1fae1b1a4220cbd4f3a11a8b1d264

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page