Skip to main content

Anteroom - your gateway to AI conversation

Project description

PyPI Version Python 3.10+ Coverage License

Anteroom Logo

Anteroom

The room before the room — a secure, private space between you and the AI.

Self-hosted ChatGPT-style web UI and agentic CLI that connects to any OpenAI-compatible API.
Install with pip. Run locally. Own your data.

DocumentationQuick StartFeaturesSecurity

Anteroom - Midnight Theme


Why Anteroom?

An anteroom is the private chamber just outside a larger hall --- a controlled space where you decide who enters and what leaves. That's exactly what this is: a secure layer on your machine between you and any AI, where your conversations never touch someone else's cloud.

Anteroom connects to any OpenAI-compatible endpoint --- your company's internal API, OpenAI, Azure, Ollama, LM Studio, or anything else that speaks the OpenAI protocol. Built to OWASP ASVS L1 standards because your conversations deserve real security, not security theater.

One command. No cloud. No telemetry. No compromise.


Quick Start

pip install anteroom
aroom init         # Interactive setup wizard

Or create ~/.anteroom/config.yaml manually:

ai:
  base_url: "https://your-ai-endpoint/v1"
  api_key: "your-api-key"
  model: "gpt-4"
aroom --test       # Verify connection
aroom              # Web UI at http://127.0.0.1:8080
aroom chat         # Terminal CLI
aroom --version    # Show version

Features

Web UI

Full-featured ChatGPT-style interface with conversations, projects, folders, tags, file attachments, MCP tool integration, prompt queuing, canvas panels for AI-generated content (CodeMirror 6 editor), inline safety approvals, command palette, and four built-in themes.

Midnight Theme Dawn Theme

CLI Chat

An agentic terminal REPL with built-in tools (read/write/edit files, bash, glob, grep, canvas), MCP integration, skills system, safety approval prompts for destructive operations, and Rich markdown rendering. Type while the AI works --- messages queue automatically.

aroom chat                          # Interactive REPL
aroom chat "explain main.py"        # One-shot mode
aroom chat -c                       # Continue last conversation
aroom chat --model gpt-4o "hello"   # Override model

Shared Core

Both interfaces share the same agent loop, storage layer, and SQLite database. Conversations created in the CLI show up in the web UI, and vice versa.


Security

Layer Implementation
Auth Session tokens, HttpOnly cookies, HMAC-SHA256
CSRF Per-session double-submit tokens
Headers CSP, X-Frame-Options, HSTS, Referrer-Policy
Database Parameterized queries, column allowlists, path validation
Input DOMPurify, UUID validation, filename sanitization
Rate Limiting 120 req/min per IP
Tool Safety Destructive action approvals (CLI + Web UI), configurable patterns, sensitive path blocking
MCP Safety SSRF protection, shell metacharacter rejection

Full details in SECURITY.md.


Documentation

For complete documentation including configuration, CLI commands, API reference, themes, MCP setup, skills, and development guides, visit anteroom.readthedocs.io.


Development

git clone https://github.com/troylar/anteroom.git
cd anteroom
pip install -e ".[dev]"
pytest tests/ -v
Backend Python 3.10+, FastAPI, Uvicorn
Frontend Vanilla JS, marked.js, highlight.js, KaTeX, CodeMirror 6
CLI Rich, prompt-toolkit, tiktoken
Database SQLite with FTS5, WAL journaling
AI OpenAI Python SDK (async streaming)
MCP Model Context Protocol SDK (stdio + SSE)

MIT License
Built for people who care about their conversations.
anteroom.readthedocs.io

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

anteroom-1.4.10.tar.gz (939.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anteroom-1.4.10-py3-none-any.whl (989.8 kB view details)

Uploaded Python 3

File details

Details for the file anteroom-1.4.10.tar.gz.

File metadata

  • Download URL: anteroom-1.4.10.tar.gz
  • Upload date:
  • Size: 939.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for anteroom-1.4.10.tar.gz
Algorithm Hash digest
SHA256 fc25e330975327ee773da01b3b3b3fe9a1055b0233c042f7cec41491507fd7e0
MD5 2c95bf9a20e69c2023fc072479263b74
BLAKE2b-256 64a1d98221b69e64e94a84f5381a9fd673cd0464eda3725fe75fce2198c5f903

See more details on using hashes here.

File details

Details for the file anteroom-1.4.10-py3-none-any.whl.

File metadata

  • Download URL: anteroom-1.4.10-py3-none-any.whl
  • Upload date:
  • Size: 989.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for anteroom-1.4.10-py3-none-any.whl
Algorithm Hash digest
SHA256 876133e642534d16db61a887bd462881758a6861fa63b81d035c5f9259f86f56
MD5 a8de7aad0c24c496bfa17b4e4649d57d
BLAKE2b-256 2fbdbaeae1767ee9daf33fa44cf631f3011b1a988b48a41ac3ac4b5f91a077b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page