AI Agent Virtual Machine - HTTP API for agent lifecycle management.
AgentVM is a runtime environment for AI agents, exposing capabilities through HTTP RESTful API. It integrates with AgentX to provide:
- Agent creation and lifecycle management
- Session management
- Streaming responses (SSE)
- Resource management (coming soon)
- Configuration management (coming soon)
# Install
bun add @agentvm/avm
# Start server
avm serve --port 8080curl -X POST http://localhost:8080/v1/agents \
-H "Content-Type: application/json" \
-d '{"name": "assistant", "systemPrompt": "You are helpful"}'curl -X POST http://localhost:8080/v1/agents/agt_xxx/sessionscurl -N http://localhost:8080/v1/sessions/sess_xxx/messages \
-H "Content-Type: application/json" \
-H "Accept: text/event-stream" \
-d '{"content": "Hello!"}'# Install dependencies
bun install
# Build all packages
bun run build
# Run tests
bun run test
# Run BDD tests
bun run test:bdd
# Start dev server
bun run dev| Package | Description |
|---|---|
@agentvm/avm |
Main HTTP server and CLI |
@agentvm/core |
Core types and utilities |
MIT