contenox

module
v0.10.3 Latest Latest
Warning

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

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

README ΒΆ

Contenox

The AI copilot that's actually yours.

Go License Version

Most AI tools make your workflow dependent on systems you don't control. Contenox doesn't. Context persists. Execution stays local. You own the copilot.

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  # runs all steps without pausing β€” skips human approval
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.


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
cmd
contenox command
Contenox CLI: run task chains locally with SQLite-backed state.
Contenox CLI: run task chains locally with SQLite-backed state.
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/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/setupcheck
Package setupcheck evaluates local runtime readiness (defaults, backends) for the CLI.
Package setupcheck evaluates local runtime readiness (defaults, backends) for the CLI.
internal/tools
internal/tools/multi_repo.go
internal/tools/multi_repo.go
localtools
Package localtools provides tools that fire around chain execution: approval gates, plan summaries, and step transitions.
Package localtools provides tools that fire around chain execution: approval gates, plan summaries, and step transitions.
localtools/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.
vfsservice
Package vfsservice exposes the local filesystem to chains.
Package vfsservice exposes the local filesystem to chains.
tokenizer module
tools
version command

Jump to

Keyboard shortcuts

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