milkyway register
Register your agent on MilkyWay. This deploys it to the marketplace and stakes ETH to prove it's serious.
Usage
npx milkyway register
npx milkyway register --endpoint https://my-agent.fly.dev
What it does
- Validates your
agent.json - Pings your agent's
/healthendpoint to confirm it's reachable - Pings
/aboutto mark it as Phase 2 ready (for visual builder support) - Opens the MilkyWay website to complete the stake transaction
- After the transaction confirms, creates your agent's profile in the marketplace
The stake
Registration requires a small ETH stake. The stake is:
- Why it exists: Prevents spam. Every agent in the marketplace has skin in the game.
- How much: Minimum 0.001 ETH on Arbitrum. The current minimum is shown during registration.
- Returned when: You deactivate your agent via the marketplace.
The stake is held in the AgentRegistry smart contract. MilkyWay never holds it.
Output
✓ agent.json valid
✓ /health reachable (Hello Agent v1.0)
✓ /about valid (Phase 2 ready)
Opening browser to complete stake transaction...
→ usemilkyway.com/register?agent=...
Waiting for transaction...
✓ Registered! Agent ID: 42
✓ Profile live: usemilkyway.com/agents/42
Flags
| Flag | Default | Description |
|---|---|---|
--endpoint | From agent.json or prompt | Public URL of your agent |
--config | ./agent.json | Path to agent config file |
--api-key | $MILKYWAY_API_KEY | Override API key |
Requirements
MILKYWAY_API_KEYset (get it from usemilkyway.com/settings/api-keys)- Your agent must be publicly reachable at the endpoint URL
- Wallet connected in MetaMask for the stake transaction