Overview
PeaBox AI Workbench (PeaboxAI) is a local-first, multi-provider AI workspace built with Streamlit. It puts Ollama, OpenAI, Anthropic, Google Gemini, Groq, OpenRouter, LiteLLM, LM Studio and any OpenAI-compatible endpoint behind a single, conversation-first interface — no tab-switching between provider dashboards, local model runners and playground UIs.
Why it exists: most AI tooling forces a choice between convenient cloud chat apps and private local models. The Workbench removes that trade-off. You get true streaming, Workspaces, a Prompt Library, Knowledge retrieval with semantic and hybrid search, Research Intelligence, Model Compare, Model Lab, structured output, versioned Artifacts, usage tracking and resilient routing — all running from your own machine with credentials stored outside release archives.
It is built for developers, researchers, analysts and power users who want one auditable place to talk to any model, ground answers in their own documents, and keep conversations, history and API keys under their control.
Use Cases
- Local-first private chat — run Ollama models fully offline for sensitive drafts, contracts or personal notes.
- Multi-model evaluation — use Model Compare and Model Lab to benchmark the same prompt across providers side by side.
- Document Q&A with Knowledge — index PDFs, DOCX and spreadsheets into the persistent Knowledge catalog and ask cited questions.
- Research with live intelligence — Research mode plus the Research Intelligence inspector for source-grounded investigation.
- Code review and refactoring — upload source files and ask for explanations, bug hunts, unit tests or language conversions.
- Structured output pipelines — coerce model responses into JSON contracts you can feed downstream systems.
- Usage and cost control — track tokens and spend per provider, with budgets and resilient routing between endpoints.
- Team knowledge bases on one laptop — Workspaces keep separate contexts, prompt libraries and catalogs per project.
A Day With the Workbench
You start the morning by double-clicking run_windows.bat. The home screen opens conversation-first: pinned threads from yesterday sit above the composer, and the three-tab Chat layout keeps the conversation, model context and inspector one glance away. You ask your local Ollama model to summarize overnight changes in a spec folder — it answers instantly with no network round-trip.
Mid-morning, a client question needs a cloud model's depth, so you switch to Anthropic in the provider picker; the inline readiness indicator confirms the key and model before you send. You attach the contract PDF, toggle Knowledge on, and get a cited answer grounded in the exact clause. In the afternoon you open Model Compare to check how GPT, Gemini and a local Llama each handle the same analysis prompt, then pin the winner into the project Workspace. Before sign-off you export the conversation as JSON and archive it — everything stays in your local SQLite history.
Features
- Multi-provider chat — Ollama (local and over SSH), OpenAI, Anthropic, Google Gemini, Groq, OpenRouter, Mistral, Together AI, LiteLLM and custom OpenAI-compatible endpoints.
- True streaming responses with a conversation-first home screen, minimal sidebar and progressive disclosure.
- Knowledge workspace — persistent catalog, SHA-256 content fingerprints, exact and near-duplicate grouping, indexed/stale lifecycle, paginated documents, batch refresh and index-health logging.
- Semantic and hybrid retrieval for cited answers over your own files.
- Research Intelligence inspector, Model Compare, Model Lab and structured output.
- Workspaces with separate contexts, prompt library and per-project settings.
- Context automation — automatic memory thresholds, smarter context selection, configurable recent-turn retention, token-adapter interface and attachment truncation diagnostics.
- Versioned Artifacts, conversation history in SQLite, auto-titling, pinning, archiving, JSON export, attachments (PDF, DOCX, PPTX, XLSX, CSV, code), vision inputs, reasoning controls and backup/restore.
- Usage tracking and resilient routing across providers.
Installation
Requires Python 3.10+ and (optionally) a running Ollama instance for local models.
git clone https://github.com/PeaBox-Lab/PeaboxAI.git
cd PeaboxAI
python -m venv .venv
# Windows: .venv\Scripts\activate | Linux/macOS: source .venv/bin/activate
pip install -r requirements.txt
On Windows you can simply double-click run_windows.bat. Manual start:
streamlit run app.py
Quickstart — 30 Seconds
- Launch with
run_windows.bat (or streamlit run app.py) and open the URL Streamlit prints (usually http://localhost:8501).
- Pick a provider and model in the sidebar — local Ollama needs no key.
- Type a question and press Enter. Toggle Knowledge to ground answers in your indexed documents.
- Use Discover / Refresh Models whenever your local model collection changes.
Configuration
All runtime data lives in %USERPROFILE%\.peabox_streamlit_llm (Windows) — conversations, workspaces, the Knowledge catalog and settings. Credentials stay outside release archives. Configure providers under Settings & API Vault: Base URL, API Key, Default Model, plus SSH Host/User/Port/Key for remote Ollama. Generation controls (Temperature, Top P, Top K, Repeat Penalty, Context Tokens, Max Output Tokens, Reasoning Level) can be overridden per message or left on model defaults.
Troubleshooting
- Ollama models don't appear — confirm Ollama is running (
ollama list) and the base URL is http://localhost:11434.
- Remote Ollama fails — verify SSH host, user, port and the private-key path; the key must not be passphrase-protected in non-interactive runs.
- Cloud provider errors — check API key, base URL, exact model name and network egress; use the inline readiness indicator before sending.
- Knowledge answers miss documents — open the Knowledge workspace, refresh the catalog and check index health; stale entries need re-indexing.
- Dependency breakage after upgrade — upgrade pip, recreate the venv and reinstall
requirements.txt.
- Context overflow — lower Context Tokens or attachment size; watch the utilisation diagnostics in the request preview.
Release & License
Current release: v7.15.1 — Knowledge Scalability & Safety (candidate-blocked duplicate analysis, paginated Knowledge documents, safe canonical selection and recoverable duplicate archive), building on v7.15.0 Knowledge Workflows and v7.14 context hardening. Full history lives in CHANGELOG.md, VERSION_HISTORY.md and RELEASE_NOTES_v7.12.0.md in the repository. See USER_GUIDE.md and FEATURES.md for deep docs. License terms are in the repository's LICENSE file.
PeaBox AI Workbench on GitHub → · PeaBox Lab Help Centre →