Skip to main content
Glama

Staffwright โ€” Your Small Team's AI Staff, Self-Hosted

License: MIT CI Listed in awesome-deepseek-harness

Staffwright turns one ordinary computer into your team's AI workstation: shared long-term memory, a company knowledge base, document search, and a live office view of your AI at work. Deploy once โ€” every phone, laptop and tablet on your network reaches it from the browser. No app installs. Up to ~20 people. MIT-licensed.

(staff + wright, as in "playwright" โ€” a maker of staff.)

  • ๐Ÿง  Shared memory โ€” cross-session long-term memory, exposed through the official MCP interface and shared by the whole team

  • ๐Ÿ“š Knowledge base โ€” ingest and search your docs anytime: industry material, SOPs, research notes

  • ๐ŸŒ Every device on the network โ€” deploy once on one always-on machine; desktops, phones and tablets all connect from the browser

  • ๐Ÿ  Your hardware โ€” data stays on your server and never leaves your LAN

  • ๐Ÿ–ฅ๏ธ Virtual office โ€” a pixel-art, view-only visualization of your AI staff at work

Under the hood, Staffwright runs the official DeepSeek Harness (DSH) engine untouched โ€” zero source changes, all integration through DSH's standard MCP interface. Staffwright is the standalone, international-first distribution of the deepDDW project; the DSH-plugin line continues at ccch713/deepddw.

โš ๏ธ Read Before Installing

Staffwright implements its own memory and knowledge-base isolation. To avoid conflicts or memory confusion:

  1. Back up your existing memory and knowledge-base contents (wherever they live in your DSH setup);

  2. Uninstall/disable any other memory or knowledge-base plugins;

  3. Only then install Staffwright and let it own the memory & knowledge-base stack.

Running it alongside other memory/KB plugins may cause data conflicts or memory mixing between namespaces.


Related MCP server: Lore

Try It in 60 Seconds

# 1. On the always-on machine (macOS 14+ / Ubuntu 22+):
git clone https://github.com/ccch713/staffwright.git && cd staffwright
./install.sh --with-dsh        # installs the DSH engine automatically if missing,
                               # then the gateway + DSH MCP bridge
./install.sh --port 8600       # 2. start (runs the test suite first, then serves)

# 3. From any device on the same network:
#    http://<server-ip>:8600/   โ†’ the DSH workbench, team-wide
#    Phones/tablets: "Add to Home Screen" for an App-like experience

# 4. Add your API key in DSH Settings โ†’ Models (see "Do I need an API key?" below)
# 5. In chat, ask the model to "search the knowledge base" or "remember โ€ฆ"
#    โ†’ it auto-invokes the built-in MCP tools

Requirements: one ordinary computer/server (8 GB RAM minimum, 16 GB+ recommended), Python 3.11+, no GPU needed (LLM via cloud API or local Ollama).

Do I Need an API Key?

Staffwright ships no keys, no accounts, no lock-in โ€” you pick one of three ways to give your staff a brain. Nothing else needs configuring: the gateway, memory, knowledge base and document search work out of the box; the key only powers the chat model.

Option

Cost

Best for

DeepSeek cloud key

A few dollars a month for a whole small team โ€” DeepSeek's API is among the cheapest of frontier-grade models

Fastest start: paste one key in DSH Settings โ†’ Models

Local Ollama (or any OpenAI-compatible endpoint)

Free, offline

Privacy-max / air-gapped networks

Managed relay (planned)

Monthly bundle, zero config

"Just make it work" teams โ€” opt-in, never a default

Then hire your first staff member in ~5 minutes from roles/ โ€” see below.

Prefer Docker?

cp .env.example .env    # set DDW_ACCESS_TOKEN
docker compose -f deepddw-compose.yml up -d --build
# โ†’ http://<host>:8500/

Windows (standalone exe)

A Windows build is produced automatically by CI โ€” download deepddw-windows.zip (legacy artifact name) from the latest Actions โ†’ Artifacts:

deepddw-windows/deepddw.exe          # unzip anywhere, no Python/Node needed
# optional: set DDW_DATA_DIR / DDW_ACCESS_TOKEN
# starts on 0.0.0.0:8500 โ†’ open http://<host>:8500/health

Upgrades: replace the folder with a newer zip โ€” your data (under %USERPROFILE%\.deepddw) is untouched. See docs/windows-packaging.md.


Why Staffwright?

Most AI-assistant setups stop at "chat in a browser tab". Staffwright is a complete workstation:

Typical self-hosted assistant

Staffwright

๐Ÿ”’ Bound to one machine, or one browser profile

โœ… LAN-wide access: deploy once; every device on the network connects

๐Ÿง  No memory between sessions

โœ… Long-term memory write/search โ€” the assistant accumulates context

๐Ÿ“š No knowledge base

โœ… Ingest & search your own docs, SOPs and notes, callable from chat

๐Ÿ‘ค Single-user mindset

โœ… Team mode: multi-user accounts, team memory distillation, workspace isolation, incognito sessions, retrieval health

๐Ÿ•ถ๏ธ Opaque backend

โœ… Virtual office: watch every subsystem at work โ€” view-only by design

In one sentence: turn a "personal AI toy" into a tool a small team actually runs its daily AI workflow on โ€” fully packaged, easy to deploy, low maintenance, up to ~20 people.

Rule of thumb: one instance per team of โ‰ค20 people on one network. If your scenario fits in one room, one floor, or one VPN, Staffwright fits you.


What's Inside

Capability

What you get

๐Ÿง  Memory

Cross-session long-term memory; results ranked by relevance (layer weight ร— hit count ร— freshness)

๐Ÿ“š Knowledge base

Ingest & search; session โ†’ document auto-ingest; hybrid retrieval (SQLite FTS5 + optional LanceDB vectors, RRF fusion)

๐Ÿ”Ž Document search

Optional SearXNG aggregate search service

๐ŸŒ Multi-device gateway

Device identity & online registry, live status panel, rate limiting, session resume across devices

๐Ÿ‘ฅ Team features

Multi-user accounts, team distillation (deduplicated shared team memory), workspace isolation, scope promote, incognito

๐Ÿ”Œ DSH integration

Official MCP interface (streamable-http) โ€” DSH UI, settings and model config stay 100% official

๐Ÿ–ฅ๏ธ Virtual office

Real-activity pixel-art visualization; failures raise a banner; day digest importance-weighted

๐Ÿ›Ÿ Ops

One-click backup/restore, optional TLS, Docker one-command deploy, version/upgrade check, Windows exe

Ready-Made AI Staff โ€” Pick a Role, Not a Blank Prompt

Installing is not the finish line; a new AI hire needs a job description. Staffwright ships role packs distilled from real small-business deployments, so a new team goes install โ†’ pick a role โ†’ useful in under an hour:

Role pack

Hires as

Headline workflows

front-desk

receptionist

FAQ from KB, appointment reminders & no-show reduction, missed-call text-back, review requests

lead-follower

sales development rep

instant first response, missed-call text-back, 0/1/3/7-day follow-up cadence

ecommerce-ops

ops assistant

customer-reply drafts, review responses, listing polish, daily digest

listing-writer

real-estate assistant

platform-ready listings, lead qualification, viewing scheduling

office-admin

chief-of-staff assistant

daily digest, meeting notes โ†’ KB, invoice triage

librarian

knowledge curator

KB ingestion & curation, retrieval health, gap reports

The field-tested deployments behind these packs โ€” dental clinic, e-commerce shop, real-estate agency โ€” are documented in docs/playbooks.md.


How It Works

๐Ÿ“ฑ Phone / ๐Ÿ’ป Desktop / ๐Ÿ“ฑ Tablet / ๐Ÿ–ฅ๏ธ Laptop โ€” any device on the network
   โ”‚                  (browser access, no app install)
   โ–ผ
Staffwright Gateway (one server on your network)
   โ”œโ”€ /dsh/*     proxy โ†’ DSH engine (official UI, model config & chat untouched)
   โ”œโ”€ /api/*     proxy โ†’ DSH RPC/API
   โ””โ”€ /api/v1/*  Staffwright capabilities: Knowledge Base / Memory / Docs / LLM config
        โ”‚
        โ”‚  DSH official MCP client (streamable-http)
        โ–ผ
Staffwright MCP tools (auto-invoked by the model)
   โ”œโ”€ mcp__deepddw__ddw_kb_search           knowledge base search
   โ”œโ”€ mcp__deepddw__ddw_memory_put          write memory
   โ”œโ”€ mcp__deepddw__ddw_memory_search       search memory
   โ””โ”€ mcp__deepddw__ddw_docs_portal_search  document search

Integration = DSH standard MCP โ€” zero intrusion, zero changes to DSH source. (Tool names keep the internal deepddw codename; a rename pass is on the roadmap.)


Virtual Office

Open /ui/office.html and watch your Staffwright at work: every subsystem is a pixel-art staff member โ€” the gateway doorman waves devices in, the chat receptionist types away, the memory butler files notes, the librarian shelves new docs, the meter clerk bills LLM calls. Real activity drives the animations (no fake loops: 30 minutes without events โ†’ back to idle); failures raise a banner; the day's digest is importance-weighted. Fully programmatic rendering โ€” zero third-party art assets, zero runtime dependencies. View-only by design: the API exposes nothing but job titles and whitelisted count phrases โ€” never document contents, memory values, or chat transcripts.


Security & Privacy

Capability

Description

๐Ÿ” Local-only data

Knowledge base & memory stay on your server, never leave the network

๐Ÿ  LAN password-free

Optional (opt-in): LAN requests skip the token โ€” OFF by default (DDW_LAN_BYPASS=1; trusted LANs only)

๐ŸŒ External access

Optional token gate (short-code supported); unauthorized โ†’ 401

๐Ÿ›ก๏ธ DSH secure binding

DSH stays bound to localhost; the gateway exposes it โ€” official security design preserved

๐Ÿงพ Audit-friendly

View-only office API, whitelisted phrases only; backup/restore with validated integrity checks


Roadmap

Only items actually planned or already delivered are listed.

Delivered highlights (full history in git log):

  • Multi-device on LAN โ€” device registry, status panel, rate limiting, SQLite WAL concurrency (up to 20 devices, load-tested: P95 โ‰ค 126 ms, 0% errors)

  • Workspace isolation ยท cross-device session resume ยท optional TLS ยท backup/restore API ยท version/upgrade check

  • Docker one-command deployment (verified end-to-end) ยท Windows exe via CI

  • Session โ†’ document auto-ingest ยท hybrid vector search ยท memory relevance ranking

  • Organization binding (optional bindcode-v1 plugin) โ€” act as the enterprise backend for assistant apps; HMAC-signed short-lived bind codes; member tokens never touch the admin API

  • Virtual office (view-only activity visualization)

Planned:

  • Scheduled staff routines โ€” cron-driven roles (watch this space)

  • One-line curl โ€ฆ | bash installer

  • Full English documentation pass (some docs/UI strings still reference the legacy deepddw codename)

  • Managed cloud (overseas regions)

  • Optional managed relay for model tokens โ€” zero-config keys for teams who want them; strictly opt-in, BYO-key stays the default

  • Community Discord


Commercial & Support

Staffwright is free and fully featured forever. Open source is the product โ€” there are no feature gates and no "Pro-only" paywalls in this repository.

Paid convenience tiers (managed cloud hosting, enterprise collaboration: SSO, audit logs, private-deployment support) are being prepared for international availability. In the meantime: questions, deployment help and enterprise inquiries โ†’ GitHub Discussions or open an issue.


Community

  • ๐Ÿ’ฌ Discussions โ€” questions, show & tell, deployment help

  • ๐Ÿ› Issues โ€” bug reports & feature requests

  • ๐Ÿค Contributing: see CONTRIBUTING.md


License

Component

License

Staffwright (gateway, memory, knowledge base, docs portal, office)

MIT

DeepSeek Harness (DSH engine, source untouched)

MIT

SearXNG (optional aggregate search)

AGPL-3.0 (server-side HTTP, exemption assessed)

See NOTICE for full third-party attribution.

Maintenance

ActivityActive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    Not graded
    maintenance
    A local-first knowledge base server that enables AI clients to store, retrieve, and manage documents using semantic search. Provides privacy-focused, offline-capable memory for AI assistants with tools for ingesting, querying, updating, and deleting knowledge.
    7
    116 npm
    -
  • A
    license
    B
    quality
    B
    maintenance
    Cross-agent memory server: hybrid (vector + full-text + knowledge-graph) recall, per-user private/shared visibility, write-side secret/PII redaction, and as-of-date bi-temporal fact queries. Auto-injection hooks for Claude Code / Cursor / Codex; self-hostable on PostgreSQL or SQLite.
    46
    52 PyPI
    9
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    A self-hosted server providing shared memory, RAG document search, project maps, and role-based prompts for all AI agents via MCP and REST, enabling persistent context across devices and tools.
    2
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables agents to retrieve relevant context via a zero-dependency hybrid search engine that blends sparse keyword-based lexical ranking with dense vector similarity scores into one fused result set, then refines it with knowledge graph triplet expansion and lost-in-the-middle context reordering. It also provides episodic memory consolidation, recency decay, and semantic query caching, exposed as a JSON-RPC 2.0 stdio MCP server for clients such as Claude Desktop, Cursor, and Windsurf.
    7
    MIT