contenox

module
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2026 License: Apache-2.0

README ΒΆ

Contenox

Go License Version

Built so your workflow stays on your side.

Most AI tools make your workflow dependent on systems you don't control. When they fail, reset, or change β€” you start over. Contenox keeps your context, executes real work, and routes to whichever model fits the job β€” so you're not renting your ability to ship.

Not another chat. A system that executes.

πŸ“– contenox.com


Install

curl -fsSL https://contenox.com/install.sh | sh

What it is

Contenox is an AI copilot you own. Any model, any provider β€” the workflow stays yours.

contenox plan new "install a git pre-commit hook that prevents commits when go build fails"
contenox plan next --auto
Executing Step 1: Install necessary tools...              βœ“
Executing Step 2: Create .git/hooks/pre-commit...         βœ“
Executing Step 3: Edit the hook script with the check...  βœ“
Executing Step 4: Write bash content to the hook file...  βœ“
Executing Step 5: chmod +x .git/hooks/pre-commit...       βœ“

Plans are stored in SQLite. They don't evaporate when the session ends.


Beam

contenox

Opens Beam β€” where the thread is the workspace. Terminal output, file reads, live agent steps, and plan state appear inline in the conversation. Same runtime as the CLI. No cloud required.


Plans that stick

contenox plan new "migrate all TODO comments to TODOS.md"
contenox plan show         # review before touching anything
contenox plan next         # one step at a time
contenox plan next --auto  # or all at once
contenox plan retry 3      # step went wrong? retry it

Connect your stack

# Any MCP-compatible tool
contenox mcp add filesystem --transport stdio \
  --command npx --args "-y,@modelcontextprotocol/server-filesystem,/"

# Any HTTP API
contenox hook add my-api --url http://localhost:8000
contenox run "fetch the latest metrics and summarize them"

Backends

Switch providers in one config line:

contenox backend add local   --type ollama
contenox backend add openai  --type openai  --api-key-env OPENAI_API_KEY
contenox backend add gemini  --type gemini  --api-key-env GEMINI_API_KEY

contenox config set default-model qwen2.5:7b
contenox config set default-provider ollama

Build from source

git clone https://github.com/contenox/contenox
cd contenox
make build-contenox

Questions: hello@contenox.com

Directories ΒΆ

Path Synopsis
Package apiframework provides HTTP request/response helpers used by the runtime API.
Package apiframework provides HTTP request/response helpers used by the runtime API.
cmd
contenox command
Contenox CLI: run task chains locally with SQLite-backed state and optional Beam server.
Contenox CLI: run task chains locally with SQLite-backed state and optional Beam server.
core module
Package libauth provides secure authentication and authorization services using JWT tokens.
Package libauth provides secure authentication and authorization services using JWT tokens.
Package bus provides an interface for core publish-subscribe messaging.
Package bus provides an interface for core publish-subscribe messaging.
Package libcipher provides a collection of cryptographic utilities for encryption, decryption, integrity verification, and secure key generation.
Package libcipher provides a collection of cryptographic utilities for encryption, decryption, integrity verification, and secure key generation.
3.
Package routine provides utilities for managing recurring tasks (routines) with circuit breaker protection.
Package routine provides utilities for managing recurring tasks (routines) with circuit breaker protection.
libs
libauth module
libdb module
libollama module
runtime
chatservice
Package chatservice provides chat session management and message persistence.
Package chatservice provides chat session management and message persistence.
chatsessionmodes
Package chatsessionmodes orchestrates a single chat turn: mode resolution, context injection, chain execution, and persistence.
Package chatsessionmodes orchestrates a single chat turn: mode resolution, context injection, chain execution, and persistence.
contenoxcli
backends.go contains helpers for LLM backend and provider config KV storage.
backends.go contains helpers for LLM backend and provider config KV storage.
hitlservice
Package hitlservice manages HITL (human-in-the-loop) policy evaluation and in-flight approval gate management for tool calls that require human review.
Package hitlservice manages HITL (human-in-the-loop) policy evaluation and in-flight approval gate management for tool calls that require human review.
internal/approvalapi
Package approvalapi provides the HTTP endpoint for resolving HITL approval requests emitted by localhooks.HITLWrapper.
Package approvalapi provides the HTTP endpoint for resolving HITL approval requests emitted by localhooks.HITLWrapper.
internal/authapi
Package usersapi provides HTTP handlers for user authentication and management.
Package usersapi provides HTTP handlers for user authentication and management.
internal/clikv
Package clikv reads and writes contenox CLI settings in SQLite KV (prefix "cli.").
Package clikv reads and writes contenox CLI settings in SQLite KV (prefix "cli.").
internal/hitlpolicyapi
Package hitlpolicyapi provides CRUD HTTP routes for named HITL policy files stored in VFS.
Package hitlpolicyapi provides CRUD HTTP routes for named HITL policy files stored in VFS.
internal/hooks
internal/hooks/multi_repo.go
internal/hooks/multi_repo.go
internal/mcpserverapi
Package mcpserverapi exposes REST endpoints for managing MCP server configurations.
Package mcpserverapi exposes REST endpoints for managing MCP server configurations.
internal/openapidocs
Package openapidocs serves the OpenAPI specification and API browser embedded in the binary.
Package openapidocs serves the OpenAPI specification and API browser embedded in the binary.
internal/runtimestate
runtimestate implements the core logic for reconciling the declared state of LLM backends (from dbInstance) with their actual observed state.
runtimestate implements the core logic for reconciling the declared state of LLM backends (from dbInstance) with their actual observed state.
internal/setupapi
Package setupapi exposes REST routes for Beam onboarding (readiness + CLI defaults in KV).
Package setupapi exposes REST routes for Beam onboarding (readiness + CLI defaults in KV).
internal/setupcheck
Package setupcheck evaluates local runtime readiness (defaults, backends) for Beam and CLI.
Package setupcheck evaluates local runtime readiness (defaults, backends) for Beam and CLI.
internal/vfsapi
Package vfsapi provides HTTP handlers for file and folder management.
Package vfsapi provides HTTP handlers for file and folder management.
localhooks
Package localhooks provides local hook integrations.
Package localhooks provides local hook integrations.
localhooks/mcpoauth
Package mcpoauth implements the MCP OAuth 2.1 Authorization Code + PKCE flow for CLI clients.
Package mcpoauth implements the MCP OAuth 2.1 Authorization Code + PKCE flow for CLI clients.
mcpserverservice
Package mcpserverservice provides CRUD operations for MCP server configurations.
Package mcpserverservice provides CRUD operations for MCP server configurations.
mcpworker
Package mcpworker manages persistent MCP server sessions across a distributed deployment.
Package mcpworker manages persistent MCP server sessions across a distributed deployment.
planservice
Package planservice manages AI-generated execution plans.
Package planservice manages AI-generated execution plans.
sessionservice
Package sessionservice provides CRUD operations for CLI chat sessions.
Package sessionservice provides CRUD operations for CLI chat sessions.
taskengine
Package taskengine provides a configurable workflow system for building AI-powered task chains.
Package taskengine provides a configurable workflow system for building AI-powered task chains.
taskengine/compact
Package compact summarizes older messages of a running ChatHistory when it approaches the model's context window, replacing them with one synthetic user message of the form:
Package compact summarizes older messages of a running ChatHistory when it approaches the model's context window, replacing them with one synthetic user message of the form:
taskengine/llmretry
Package llmretry wraps a single LLM call with classified retry, exponential backoff, and an optional model fallback.
Package llmretry wraps a single LLM call with classified retry, exponential backoff, and an optional model fallback.
terminalservice
Package terminalservice hosts a single PTY-backed shell session per process.
Package terminalservice hosts a single PTY-backed shell session per process.
vfsservice
Package vfsservice provides a virtual filesystem abstraction backed by Postgres (via libdbexec).
Package vfsservice provides a virtual filesystem abstraction backed by Postgres (via libdbexec).
tokenizer module
tools
openapi-gen command
openapi-gen/internal/comment
Package comment extracts documentation text from go/ast comment groups for OpenAPI generation.
Package comment extracts documentation text from go/ast comment groups for OpenAPI generation.
openapi-gen/internal/project
Package project loads parsed Go packages for the main module (go list ./...).
Package project loads parsed Go packages for the main module (go list ./...).
version command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL