Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
coi
command
Command coi runs AI coding tools inside isolated Incus containers; it is a thin entry point that executes the CLI and maps errors to exit codes.
|
Command coi runs AI coding tools inside isolated Incus containers; it is a thin entry point that executes the CLI and maps errors to exit codes. |
|
internal
|
|
|
alias
Package alias persists workspace aliases (alias -> workspace and optional profile) and resolves them to running or launchable containers.
|
Package alias persists workspace aliases (alias -> workspace and optional profile) and resolves them to running or launchable containers. |
|
audit
Package audit implements threat-event audit streaming for coi sandbox sessions.
|
Package audit implements threat-event audit streaming for coi sandbox sessions. |
|
bedrock
Package bedrock detects AWS Bedrock configuration in Claude settings and validates that a Colima environment is set up correctly to use it.
|
Package bedrock detects AWS Bedrock configuration in Claude settings and validates that a Colima environment is set up correctly to use it. |
|
cleanup
Package cleanup detects and removes host resources orphaned by containers that were not cleaned up properly: veth interfaces, nft and ip6 rules, nft monitoring rules, and iptables bridge-forward rules.
|
Package cleanup detects and removes host resources orphaned by containers that were not cleaned up properly: veth interfaces, nft and ip6 rules, nft monitoring rules, and iptables bridge-forward rules. |
|
cli
Package cli implements the coi command-line interface: the cobra command tree and the logic behind each subcommand.
|
Package cli implements the coi command-line interface: the cobra command tree and the logic behind each subcommand. |
|
config
Package config defines coi's configuration model and loads, merges and validates it from the embedded defaults, config files and profiles.
|
Package config defines coi's configuration model and loads, merges and validates it from the embedded defaults, config files and profiles. |
|
container
Package container wraps the incus CLI: running incus commands, managing container lifecycle, files, devices, storage and hardening, and checking the installed Incus version.
|
Package container wraps the incus CLI: running incus commands, managing container lifecycle, files, devices, storage and hardening, and checking the installed Incus version. |
|
health
Package health implements `coi health`: system, Incus, network, storage and container probes, their aggregation into an overall status, and optional remediation of failed checks.
|
Package health implements `coi health`: system, Incus, network, storage and container probes, their aggregation into an overall status, and optional remediation of failed checks. |
|
image
Package image builds, versions and cleans up the Incus images coi launches containers from.
|
Package image builds, versions and cleans up the Incus images coi launches containers from. |
|
limits
Package limits validates container resource limits (CPU, memory, disk, runtime) and applies them to Incus containers.
|
Package limits validates container resource limits (CPU, memory, disk, runtime) and applies them to Incus containers. |
|
logger
Package logger provides per-session loggers that write to log files under ~/.coi/logs/.
|
Package logger provides per-session loggers that write to log files under ~/.coi/logs/. |
|
monitor
Package monitor watches running containers for security threats (reverse shells, environment scanning, suspicious network and filesystem activity), responds to them, and records events in an audit log.
|
Package monitor watches running containers for security threats (reverse shells, environment scanning, suspicious network and filesystem activity), responds to them, and records events in an audit log. |
|
network
Package network manages container network isolation: firewall rules for the restricted, open and allowlist modes, domain resolution and IP caching, and per-container /etc/hosts entries.
|
Package network manages container network isolation: firewall rules for the restricted, open and allowlist modes, domain resolution and IP caching, and per-container /etc/hosts entries. |
|
nftmonitor
Package nftmonitor monitors container network activity by installing nftables logging rules, reading the resulting kernel log entries, and reporting suspicious connections as threats.
|
Package nftmonitor monitors container network activity by installing nftables logging rules, reading the resulting kernel log entries, and reporting suspicious connections as threats. |
|
session
Package session sets up, runs and tears down coi sessions: container launch and configuration, mounts, credentials, git identity and guards, security hardening, and cleanup.
|
Package session sets up, runs and tears down coi sessions: container launch and configuration, mounts, credentials, git identity and guards, security hardening, and cleanup. |
|
sinkguard
Package sinkguard holds a regression guard (in its test file) ensuring that packages whose code runs while a `coi shell` session is interactively attached never write to a terminal sink (os.Stdout/os.Stderr/global log/fmt.Print*).
|
Package sinkguard holds a regression guard (in its test file) ensuring that packages whose code runs while a `coi shell` session is interactively attached never write to a terminal sink (os.Stdout/os.Stderr/global log/fmt.Print*). |
|
terminal
Package terminal adapts host terminal settings for use inside containers.
|
Package terminal adapts host terminal settings for use inside containers. |
|
timing
Package timing is an opt-in, zero-cost-when-off wall-clock profiler for a single coi invocation.
|
Package timing is an opt-in, zero-cost-when-off wall-clock profiler for a single coi invocation. |
|
tool
Package tool defines the AI coding tools (Claude Code, codex, opencode, pi, omp) that coi can run in containers: how each is launched, resumed and configured for sandboxed, permission-bypassing operation.
|
Package tool defines the AI coding tools (Claude Code, codex, opencode, pi, omp) that coi can run in containers: how each is launched, resumed and configured for sandboxed, permission-bypassing operation. |
|
tool/credentials
Package credentials holds the embedded catalog of named credential bundles: which host config directory and files to copy into a container for a given tool or third-party provider.
|
Package credentials holds the embedded catalog of named credential bundles: which host config directory and files to copy into a container for a given tool or third-party provider. |
|
vmhost
Package vmhost detects which VM (if any) is hosting the current container runtime, so callers can answer VM-specific behavior questions — such as whether the host already handles UID mapping for shared/mounted directories — from a single, shared piece of detection logic.
|
Package vmhost detects which VM (if any) is hosting the current container runtime, so callers can answer VM-specific behavior questions — such as whether the host already handles UID mapping for shared/mounted directories — from a single, shared piece of detection logic. |
|
Package schema provides access to the Coi profile JSON Schema.
|
Package schema provides access to the Coi profile JSON Schema. |
Click to show internal directories.
Click to hide internal directories.
