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.1.tar.gz (13.1 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.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mercury_launcher-0.1.1.tar.gz
  • Upload date:
  • Size: 13.1 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.1.tar.gz
Algorithm Hash digest
SHA256 ea7b2e3b4dc442f738f6165589cd9d13e3f1d293ebcd8e713f67c46f901834d1
MD5 4223f9364931f440a87f0b1e3d990d4a
BLAKE2b-256 c3eca9c8d853933a7c6849296f6a7cfdab20740fa9d3f11ee37c44fdde19191f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mercury_launcher-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0c777d9ae2bf55243f682f4848b214ab3ad141d53e5ae9852b361e3d20bd6ca
MD5 623d2b4f42fe589a2d97c47312cbe3a4
BLAKE2b-256 f6cf16791c8507431e889587d90d70f795cdd161d0f1b8f4f0c44809adce6a08

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