New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@agentage/cli

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentage/cli

Agentage CLI and daemon — control plane for AI agents

latest
Source
npmnpm
Version
0.13.1
Version published
Maintainers
1
Created
Source

@agentage/cli

CI npm version

CLI and daemon for the Agentage control plane. Discovers local agents, executes them, and connects to the hub for multi-machine orchestration.

Installation

npm install -g @agentage/cli

Quick Start

# Start the daemon (discovers agents, exposes REST API)
agentage daemon

# List discovered agents
agentage agents

# Run an agent
agentage run my-agent "Summarize this project"

# Check daemon + hub status
agentage status

Daemon

The daemon is a lightweight Express server that runs on each machine. It discovers local agents, executes them, and optionally syncs with a central hub.

API

MethodEndpointDescription
GET/api/healthStatus, version, uptime, machine ID, hub connection
GET/api/agentsList discovered agent manifests
POST/api/agents/refreshRe-scan agent directories
POST/api/agents/:name/runExecute an agent ({ task, config?, context? })
GET/api/runsList all runs
GET/api/runs/:idGet run details + output
POST/api/runs/:id/cancelCancel a running execution
POST/api/runs/:id/inputSend input to a waiting agent

Default port: 3100

Agent Discovery

The daemon scans configured directories for agents:

~/.agentage/agents/*.agent.md    # Global agents
.agentage/agents/*.agent.md      # Workspace agents

Two built-in factories: markdown (.agent.md files with YAML frontmatter) and code (TypeScript/JavaScript modules exporting an Agent).

Hub Sync

When authenticated (agentage login), the daemon connects to the hub via WebSocket — registering the machine, syncing agents, and relaying run events.

MethodEndpointDescription
GET/api/hub/machinesList all hub-connected machines
GET/api/hub/agentsAggregated agents across all machines
POST/api/hub/runsStart a run on any connected machine

CLI Commands

CommandDescription
agentage daemonStart the daemon server
agentage agentsList discovered agents
agentage run <name> [task]Execute an agent
agentage runsList runs
agentage machinesList hub-connected machines
agentage statusShow daemon and hub status
agentage logsView daemon logs
agentage loginAuthenticate with the hub
agentage logoutLog out

Project Structure

src/
├── cli.ts                  # CLI entry point (commander)
├── daemon-entry.ts         # Daemon process entry point
├── commands/               # CLI command handlers
│   ├── daemon-cmd.ts       #   agentage daemon
│   ├── agents.ts           #   agentage agents
│   ├── run.ts              #   agentage run
│   ├── runs.ts             #   agentage runs
│   ├── machines.ts         #   agentage machines
│   ├── status.ts           #   agentage status
│   ├── logs.ts             #   agentage logs
│   ├── login.ts            #   agentage login
│   └── logout.ts           #   agentage logout
├── daemon/                 # Daemon server
│   ├── server.ts           #   Express + HTTP server setup
│   ├── routes.ts           #   REST API routes
│   ├── config.ts           #   Daemon configuration
│   ├── run-manager.ts      #   Agent execution + run lifecycle
│   ├── websocket.ts        #   WebSocket for streaming
│   └── logger.ts           #   Structured logging
├── discovery/              # Agent discovery
│   ├── scanner.ts          #   Directory scanning
│   ├── markdown-factory.ts #   .agent.md parser (gray-matter)
│   └── code-factory.ts     #   JS/TS module loader (jiti)
├── hub/                    # Hub connection
│   ├── auth.ts             #   Auth token storage
│   ├── auth-callback.ts    #   OAuth callback server
│   ├── hub-client.ts       #   Hub REST client
│   ├── hub-sync.ts         #   Machine/agent sync
│   ├── hub-ws.ts           #   Hub WebSocket client
│   └── reconnection.ts     #   Auto-reconnect logic
└── utils/
    ├── daemon-client.ts    #   CLI → daemon HTTP client
    ├── ensure-daemon.ts    #   Auto-start daemon if not running
    └── render.ts           #   Terminal output formatting

Development

Requires Node.js >= 22.0.0.

npm ci
npm run verify    # type-check + lint + format + test + build
npm run build && npm link   # test CLI locally

License

MIT

FAQs

Package last updated on 29 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts