contenox

module
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 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.


Desktop app

contenox

Opens the Contenox desktop app. Terminal output, file reads, live agent steps, and plan state appear inline in the same thread you're typing in. 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 for the Contenox API.
Package apiframework provides HTTP request/response helpers for the Contenox API.
cmd
contenox-runtime 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 persists the conversation thread.
Package chatservice persists the conversation thread.
chatsessionmodes
Package chatsessionmodes routes each chat turn: resolves which chain to run, injects context, executes steps, and persists the result.
Package chatsessionmodes routes each chat turn: resolves which chain to run, injects context, executes steps, and persists the result.
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 evaluates approval policies before shell commands and tool calls execute.
Package hitlservice evaluates approval policies before shell commands and tool calls execute.
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 hooks that fire around chain execution: approval gates, plan summaries, and step transitions.
Package localhooks provides hooks that fire around chain execution: approval gates, plan summaries, and step transitions.
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 stores MCP server configs.
Package mcpserverservice stores MCP server configs.
mcpworker
Package mcpworker keeps MCP server connections alive across chain steps.
Package mcpworker keeps MCP server connections alive across chain steps.
planservice
Package planservice stores and advances execution plans.
Package planservice stores and advances execution plans.
sessionservice
Package sessionservice stores CLI chat sessions so conversations persist across terminal restarts.
Package sessionservice stores CLI chat sessions so conversations persist across terminal restarts.
taskengine
Package taskengine runs the steps inside a chain.
Package taskengine runs the steps inside a chain.
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 runs a real shell session on the local machine.
Package terminalservice runs a real shell session on the local machine.
vfsservice
Package vfsservice exposes the local filesystem to chains.
Package vfsservice exposes the local filesystem to chains.
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