OpenHive CLI
The Official Command-Line Interface for the OpenHive Platform
Build, manage, and deploy A2A-compliant AI agents with ease.

🌟 Features
- 🛠️ Source Scaffolding: Interactively create or add A2A-compliant agents to your project.
- 🚀 Local Development: Start and test your agents locally with a unified command.
- 💬 Interactive Chat: Built-in terminal chat interface to interact with your agents.
- 📦 Agent Publishing: Bundle and publish your agent's source code to the OpenHive Platform.
- ☁️ Automatic Deployment: Deploy your agents to serverless cloud infrastructure.
- 🔑 Platform Authentication: Securely log in to OpenHive Platform.
- ⚙️ Configuration Control: Manage CLI settings and configuration profiles.
🚀 Quick Start
Installation
npm install -g @open-hive/cli
yarn global add @open-hive/cli
hive --version
Option 1: Create a New Agent (Standalone)
Ideal for creating a brand new agent project from scratch.
hive create my-agent
cd my-agent
npm install
hive start
Option 2: Add Agents to an Existing Project
Ideal for integrating agents into an existing application ("The Shadcn for Agents" flow).
hive init
hive add news-summarizer
hive call news-summarizer
📚 Commands
Project & Agent Management
hive init | Initialize a new OpenHive project configuration (hive.json). |
hive create <name> | Scaffolds a new, standalone agent project from a template. |
hive add <name> | Adds an agent's source code to your existing project. |
hive start | Starts the agent server in development mode (supports Node & Python). |
Interaction & Testing
hive call <agent> | Interact with an agent using the A2A protocol. Supports attachments. |
Options:
-m, --message: Send a single message (non-interactive).
-i, --interactive: Start an interactive chat session.
-f, --file: Attach a file to the message (can be used multiple times).
-d, --directory: Attach all files in a directory (can be used multiple times).
Examples:
hive call my-agent -i
hive call my-agent -m "Summarize this article"
hive call my-agent -m "Check this log" -f ./error.log
hive call my-agent -m "Review this data" -f ./data.csv -d ./logs/
Platform Integration
hive login | Authenticate with OpenHive Platform. |
hive logout | Sign out from OpenHive Platform. |
hive whoami | Display current user information. |
hive publish | Bundle source, push to registry, and deploy. |
hive push | Push agent source to registry (without deploying). |
hive deploy | Deploy an existing agent version to the cloud. |
Examples:
hive login
hive publish
hive push
hive deploy --name my-agent --version 0.1.0
Configuration
hive config get <key> | Get a configuration value. |
hive config set <key> <value> | Set a configuration value. |
hive config list | List all configuration values. |
Examples:
hive config get url
hive config set url https://www.openhive.cloud
hive config list
🏗️ Agent Structure
When you create or add an agent, you get a standard A2A-compliant structure.
Node.js Agent
my-agent/
├── .agent-card.json # Agent configuration (AgentCard)
├── package.json # Dependencies
├── src/
│ └── index.ts # A2A-compliant agent implementation
└── tsconfig.json # TypeScript configuration
Python Agent
my-agent/
├── .agent-card.json # Agent configuration (AgentCard)
├── requirements.txt # Dependencies
└── main.py # A2A-compliant agent implementation
📄 .agent-card.json Configuration
The .agent-card.json file is your A2A AgentCard - it defines your agent's metadata and skills:
{
"name": "my-agent",
"description": "An A2A-compliant AI agent",
"protocolVersion": "0.3.0",
"version": "0.1.0",
"url": "http://localhost:8080",
"runtime": "node",
"skills": [
{
"id": "hello-world",
"name": "Hello World",
"description": "A simple skill that returns a greeting",
"tags": ["greeting", "demo"]
}
]
}
🔌 A2A Protocol & Official SDKs
OpenHive CLI creates agents using the official A2A SDKs:
- Node.js:
@a2a-js/sdk
- Python:
a2a-sdk
These SDKs ensure your agents are compliant with the Agent2Agent protocol, handling task management, streaming, and error handling automatically.