Composable agent runtime monorepo built on the pi ecosystem
Find a file
2026-03-05 18:58:27 -08:00
.github chore: approve contributor lajarre 2026-03-05 19:21:04 +00:00
.husky models 2026-03-05 16:45:36 -08:00
.pi packages 2026-03-05 15:55:27 -08:00
packages new gateway 2026-03-05 18:58:27 -08:00
scripts chore: rebrand monorepo references to co-mono 2026-03-05 16:00:17 -08:00
.gitattributes chore: add repository .gitattributes for line ending normalization 2026-02-26 01:11:34 +01:00
.gitignore fix(coding-agent): normalize raw git URLs in extension source matching 2026-01-22 14:19:04 +01:00
AGENTS.md Update AGENTS.md 2026-03-04 18:06:26 +01:00
biome.json WIP: Remove global state from pi-ai OAuth/API key handling 2025-12-25 01:01:03 +01:00
CONTRIBUTING.md chore: rebrand monorepo references to co-mono 2026-03-05 16:00:17 -08:00
install.sh fix(runtime): keep daemon alive and localize package installs 2026-03-05 17:36:25 -08:00
LICENSE Initial monorepo setup with npm workspaces and dual TypeScript configuration 2025-08-09 17:18:38 +02:00
package-lock.json new gateway 2026-03-05 18:58:27 -08:00
package.json chore: rebrand monorepo references to co-mono 2026-03-05 16:00:17 -08:00
pi-mono.code-workspace chore: rebrand monorepo references to co-mono 2026-03-05 16:00:17 -08:00
pi-test.sh fix: handle empty args array in pi-test.sh 2026-01-25 23:47:35 +01:00
public-install.sh fix(installer): avoid unbound asset variable in release download 2026-03-05 17:39:07 -08:00
README.md daemon with coding agent 2026-03-05 17:26:42 -08:00
test.sh fix(coding-agent): tighten session_before emit typing and test env filtering 2026-02-06 11:59:25 +01:00
tsconfig.base.json Try fixing root level compiles 2025-12-03 14:16:00 +01:00
tsconfig.json fix(dev): map pi-ai oauth subpath in tsconfig paths 2026-03-04 20:30:10 +01:00

pi logo

Discord Build status

pi.dev domain graciously donated by

Exy mascot
exe.dev

Co-Mono

Looking for the pi coding agent? See packages/coding-agent for installation and usage.

Tools for building AI agents and managing LLM deployments.

Packages

Package Description
@mariozechner/pi-ai Unified multi-provider LLM API (OpenAI, Anthropic, Google, etc.)
@mariozechner/pi-agent-core Agent runtime with tool calling and state management
@mariozechner/pi-coding-agent Interactive coding agent CLI
@mariozechner/pi-mom Slack bot that delegates messages to the pi coding agent
@mariozechner/pi-tui Terminal UI library with differential rendering
@mariozechner/pi-web-ui Web components for AI chat interfaces
@mariozechner/pi-pods CLI for managing vLLM deployments on GPU pods

Contributing

See CONTRIBUTING.md for contribution guidelines and AGENTS.md for project-specific rules (for both humans and agents).

Install

Public (binary)

Use this for users on production machines where you don't want to expose source.

curl -fsSL https://raw.githubusercontent.com/getcompanion-ai/co-mono/main/public-install.sh | bash

Install everything and keep it always-on (recommended for new devices):

curl -fsSL https://raw.githubusercontent.com/getcompanion-ai/co-mono/main/public-install.sh | bash -s -- --daemon --start

This installer:

  • Downloads the latest release (or falls back to source when needed),
  • writes ~/.local/bin/co-mono launcher,
  • populates ~/.co-mono/agent/settings.json with package list,
  • installs packages (if npm is available),
  • and can install a user systemd service for co-mono daemon so it stays alive.

Preinstalled package sources are:

[
  "npm:@e9n/pi-channels",
  "npm:pi-memory-md",
  "npm:pi-teams"
]

If npm is available, it also installs these packages during install.

If no release asset is found, the installer falls back to source.

CO_MONO_FALLBACK_TO_SOURCE=0 \
  curl -fsSL https://raw.githubusercontent.com/getcompanion-ai/co-mono/main/public-install.sh | bash -s -- --daemon --start

public-install.sh options:

curl -fsSL https://raw.githubusercontent.com/getcompanion-ai/co-mono/main/public-install.sh | bash -s -- --help

Local (source)

git clone https://github.com/getcompanion-ai/co-mono.git
cd co-mono
./install.sh

Run:

./co-mono

Run in background with extensions active:

./co-mono daemon

For a user systemd setup, create ~/.config/systemd/user/co-mono.service with:

[Unit]
Description=co-mono
After=network-online.target

[Service]
Type=simple
Environment=PI_CODING_AGENT_DIR=%h/.co-mono/agent
Environment=CO_MONO_AGENT_DIR=%h/.co-mono/agent
ExecStart=/absolute/path/to/repo/co-mono daemon
Restart=always
RestartSec=5

[Install]
WantedBy=default.target

Then enable:

systemctl --user daemon-reload
systemctl --user enable --now co-mono

Optional:

npm run build   # build all packages
npm run check   # lint/format/typecheck

Development

npm install          # Install all dependencies
npm run build        # Build all packages
npm run check        # Lint, format, and type check
./test.sh            # Run tests (skips LLM-dependent tests without API keys)
./pi-test.sh         # Run pi from sources (must be run from repo root)

Note: npm run check requires npm run build to be run first. The web-ui package uses tsc which needs compiled .d.ts files from dependencies.

License

MIT