Skip to main content

cosinabox

License: AGPL-3.0 Python 3.11+

Open-source Chief of Staff in a box. Opinionated, proactive, runs on your own infra.

CoSinaBox is a self-hosted AI Chief of Staff agent that runs your day. It ships with default morning briefing, pre-meeting prep, evening wrap, weekly review, and follow-up tracking. You configure who it's for, not what it does.

Key Features

  • 5 built-in jobs: morning briefing, pre-meeting prep, evening wrap, weekly review, follow-up nudges
  • Telegram-first: primary interface via Telegram bot
  • Google integration: Calendar, Gmail, Drive (optional)
  • SQLite memory: persistent context without external databases
  • Zero telemetry: runs entirely on your infra with your API keys
  • Extensible: add custom jobs via a thin user repo

Prerequisites

  • Python 3.11+
  • Anthropic API key (Claude powers the agent)
  • Telegram bot token (via @BotFather)
  • Optional: Google OAuth credentials (for Calendar/Gmail/Drive)
  • Optional: Fireflies API key (for meeting transcripts)

Quickstart

# Install the engine
pip install cosinabox

# Scaffold your user repo
cosinabox init my-cos
cd my-cos

# Configure (edit .env with your API keys, then customize personality.md)
cp .env.example .env
$EDITOR .env
$EDITOR personality.md

# Verify setup
cosinabox doctor

# Run
cosinabox run

Development Setup

# Clone and install in dev mode
git clone https://github.com/user/cosinabox.git
cd cosinabox
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,google,fireflies,search,attio]"

# Install pre-commit hooks
pre-commit install

# Run tests
pytest

# Lint & type-check
ruff check src tests
mypy src

See CONTRIBUTING.md for full development guidelines.

Project Structure

cosinabox/
├── src/cosinabox/
│   ├── agent/         # Claude API loop, routing, cost tracking
│   ├── app/           # App orchestrator (config, tools, jobs, alerts, chat)
│   ├── bot/           # Telegram adapter
│   ├── cli/           # CLI commands (init, run, doctor)
│   ├── jobs/          # 5 built-in jobs
│   ├── memory/        # SQLite persistence layer
│   ├── scheduling/    # APScheduler integration
│   ├── tools/         # External integrations (Google, Fireflies, Serper)
│   ├── prompts/       # Default prompt templates
│   ├── personas/      # Persona templates
│   ├── schemas/       # JSON schemas for config validation
│   └── templates/     # User-repo scaffold (used by `cosinabox init`)
├── tests/
│   ├── unit/          # Unit tests
│   └── stress/        # Stress/integration tests
└── docs/              # Architecture and design docs

Architecture

CoSinaBox follows an engine + thin user repo pattern (similar to Hugo + content, or Next.js + app code):

  • Engine (cosinabox package): the agent loop, scheduling, tools, and built-in jobs
  • User repo (scaffolded by cosinabox init): your personality, stakeholders, integrations config, and optional custom jobs

For detailed architecture, see docs/specs/2026-04-11-cosinabox-design.md.

Privacy

  • Zero telemetry by default -- no data leaves your machine except to APIs you explicitly configure
  • AGPL-3.0 license to protect against SaaS extraction without contribution
  • README documents every external service the engine touches

Running Tests

# All tests
pytest

# Unit tests only
pytest tests/unit/

# With coverage
pytest --cov=cosinabox

License

AGPL-3.0-or-later. See LICENSE.

Metadata

Release files for cosinabox 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cosinabox 0.1.6
File Size Uploaded Provenance Actions
cosinabox-0.1.6.tar.gz 631.8 kB With provenance Details for cosinabox-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cosinabox 0.1.6
File Interpreter ABI Platform Actions
cosinabox-0.1.6-py3-none-any.whl Python 3 none any Details for cosinabox-0.1.6-py3-none-any.whl

Total release size: 906.6 kB

Release files / cosinabox-0.1.6.tar.gz

Download URL cosinabox-0.1.6.tar.gz
Size 631.8 kB
Tags Source
SHA-256 checksum
How to use checksums
fc2bb89bbee515b73ea2b52b9635e049f00d22e92590869a01256de190343373
BLAKE2b-256 checksum
How to use checksums
c9c7b1dd17f27bf611b63e47cce8da81ec3e63fba65adf9f807492404b1215f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2026.

Transparency log

Release files / cosinabox-0.1.6-py3-none-any.whl

Download URL cosinabox-0.1.6-py3-none-any.whl
Size 274.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86efd32394afa98795bf665bb3433f1c791517c4ee3ec2f8df162ba66e4ad82e
BLAKE2b-256 checksum
How to use checksums
d84dc816220f7b1f1a839074785014ac7b61a21abbc2c3ec21b5d52f63712b33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2026.

Transparency log

Security for cosinabox 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cosinabox-0.1.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page