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

genbox-agent

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genbox-agent

Unified agent for monitoring and controlling AI CLI sessions (Claude Code, Gemini CLI, OpenAI Codex) in genbox VMs

latest
Source
npmnpm
Version
1.0.146
Version published
Maintainers
1
Created
Source

genbox-agent

Unified daemon for monitoring and controlling AI CLI sessions (Claude Code, Gemini CLI, OpenAI Codex) locally or in remote VMs.

Installation

You typically don't need to install this manually. Both the Genbox CLI and Genbox Desktop app will automatically install and manage the daemon for you.

If you want to install it globally (optional):

npm install -g genbox-agent

Quick Start

The daemon is typically started automatically by:

  • Genbox Desktop: Launches daemon on app startup
  • Genbox CLI: Uses npx genbox-agent on demand

To start manually:

genbox-agent --native --server

Usage

# Show version
genbox-agent --version

# Show help
genbox-agent --help

# Start daemon with HTTP/WebSocket server (for desktop app)
genbox-agent --native --server

# Start daemon without server
genbox-agent --native

# Custom port
genbox-agent --native --server --port 8080

Features

  • Multi-Provider Support: Works with Claude Code, Gemini CLI, and OpenAI Codex
  • Session Management: Create, monitor, and control AI CLI sessions
  • Real-time Sync: Syncs session data from Claude Code's JSONL files
  • HTTP/WebSocket API: REST API and real-time events for desktop apps
  • State Tracking: Monitors session states (thinking, tool_use, waiting_for_input)

API Endpoints

When running with --server, the daemon exposes:

EndpointMethodDescription
/healthGETHealth check and version info
/api/sessionsGETList all sessions
/api/sessions/:idGETGet session details
/api/sessions/:id/messagesGETGet session messages
/api/sessions/:id/promptPOSTSend prompt to session

Configuration

Environment Variables

VariableDescription
GENBOX_IDInstance ID (for cloud mode)
GENBOX_TOKENAuth token (for cloud mode)

CLI Options

OptionDescription
--nativeRun in local mode (no cloud connection)
--serverEnable HTTP/WebSocket server
--port <port>Server port (default: 47191)
--control-tokenAuthentication token for API
--no-syncDisable background sync

Requirements

  • Node.js >= 18.0.0
  • One or more AI CLIs installed:
    • Claude Code
    • Gemini CLI
    • OpenAI Codex CLI

How It Works

  • Session Discovery: Detects active AI CLI sessions via dtach sockets
  • JSONL Sync: Reads Claude Code's conversation files from ~/.claude/projects/
  • State Inference: Tracks session states from JSONL content and file modification times
  • Event Broadcasting: Emits real-time events via WebSocket for UI updates

Data Storage

  • Database: SQLite at ~/.genbox/data/agent.db
  • Logs: ~/.genbox/daemon.log
  • Lock files: ~/.genbox/locks/

License

MIT

Keywords

genbox

FAQs

Package last updated on 04 Feb 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