Skip to content
Prometheas-LabsPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

nixi

A shared, Nix-powered dev container for AI coding agents. One container, many projects, full isolation.

What this is

nixi gives you a single persistent container where AI coding agents (Claude Code, Codex, Cursor, etc.) can work safely across all your projects. Nix manages the toolchain, direnv auto-activates per-project environments, and your host machine stays untouched.

  • One container, many projects — mount any number of repos; agents share the Nix toolchain
  • Per-project isolation — each project declares its own flake.nix for exact tool versions
  • Multi-arch — runs natively on ARM (Apple Silicon) and Intel
  • Lightweight — Debian-slim base + Nix, persistent volumes for instant restarts
  • Safe — no Docker socket, no privileged mode, non-root user, network policies

Quick start

# Clone and build
git clone https://github.com/user/nixi && cd nixi
pnpm install && pnpm build

# Install the CLI globally
pnpm script-install

# Add a project (from the project's directory)
cd ~/projects/my-app
nixi mount

# Register an agent
nixi config add-agent claude

# Set agent credentials
nixi config set-env claude ANTHROPIC_API_KEY=sk-ant-...

# Start the sandbox (auto-installs registered agents)
nixi up

# Launch an agent (auto-detects project from cwd)
cd ~/projects/my-app
nixi agent

# Open VS Code attached to the sandbox
nixi ide

# Open a different IDE (Cursor, Antigravity)
nixi ide --app cursor

# Open a shell (multiple sessions supported)
nixi shell
nixi shell -n debug    # named session

Repository structure

nixi/
├── container/              # Dockerfile, compose, entrypoint, example flakes
│   ├── Dockerfile
│   ├── docker-compose.yml
│   ├── scripts/
│   └── examples/
├── registry/
│   ├── agents/             # Agent registry (manifest.json + script.sh per agent)
│   └── ides/               # IDE registry scripts (code, cursor, antigravity)
├── packages/
│   ├── core/               # Shared TS library — Docker API, config schema (Zod)
│   ├── cli/                # Distributable CLI (nixi up/down/shell/agent)
│   ├── ui/                 # Shared React components (future)
│   └── config/             # Shared TSConfig, lint configs
├── apps/
│   ├── desktop/            # Tauri v2 native app — macOS, Windows, Linux (future)
│   └── web/                # Documentation site (future)
├── turbo.json
├── pnpm-workspace.yaml
└── package.json

Packages

Package Description Status
@nixi/core Config schema, Docker runtime management ✅ Alpha
@nixi/cli Command-line interface (up/down/shell/agent/ide) ✅ Alpha
@nixi/ui Shared React components 🔲 Planned
apps/desktop Tauri native desktop app 🔲 Planned
apps/web Documentation site 🔲 Planned

Development

# Prerequisites: Node 22+, pnpm 9+
pnpm install
pnpm build

# Install the CLI globally
pnpm script-install

# Run the CLI in dev mode
pnpm --filter @nixi/cli sandbox -- status

How it works

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages