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.1.2.tar.gz (13.9 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.1.2-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mercury_launcher-0.1.2.tar.gz
  • Upload date:
  • Size: 13.9 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.1.2.tar.gz
Algorithm Hash digest
SHA256 b08a32643aaf1d8e3b6b9bcf36a3875a5ad3cca905c492fe245777d87974b244
MD5 daefb9760a1f79f6945ebe7d6c9275ea
BLAKE2b-256 5ae46680bd6bd491851c43f6892e25a939b3d853fe97cc0573128ca554e176e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mercury_launcher-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 60c5e22c0434b0a06be5bea788b493a21704f97fbdc3b2a707457db69c5908ac
MD5 ab98b15667e3ffc8657a8495de6c701c
BLAKE2b-256 24377a248fcee43fdaf594a16eeb0b7ec4e18b16ca32cd502efd07faf127a19d

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