Skip to content

Support other harnesses (codex, etc.), not just claude #2

Description

@repalash

The container is a generic sandbox, but the CLI's conveniences are claude-shaped. Any harness already runs via aibox shell codex (installed durably through ~/.aibox/Dockerfile.extra, with its auth persisting in the aibox-home volume), but:

  • The default command, the auto-installer (_ensure_claude_bin), and the --yolo permission-flag logic hardcode the claude binary.
  • --copy (disposable snapshot container) only exists on the claude path — no copy sandbox for other harnesses.
  • Only ANTHROPIC_* host env vars are forwarded; e.g. OPENAI_* is not.

Proposed direction (from discussion, not final)

A generic escape hatch rather than per-harness commands:

  • aibox run <program> [args...] sharing the container/mode plumbing, so aibox run codex --copy works.
  • Widen env forwarding beyond ANTHROPIC_* (e.g. OPENAI_*, or a configurable prefix list in ~/.aibox/config).
  • Keep --yolo claude-specific — approval flags differ per harness (codex uses --dangerously-bypass-approvals-and-sandbox).
  • Possibly a harness=codex config key to change what bare aibox runs.

Deferred for now; capturing so it isn't lost.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions