Skip to main content

FastAPI backend for the Minds Cowork desktop app

Project description

Cowork Server

FastAPI backend for the Anton desktop app. Manages projects, conversations, files, scheduling, memory, and agent orchestration with a SQLite-backed data layer.

Quick Start

Requires Python 3.12+ and uv.

# Install and run
uv tool install cowork-server
cowork-server

The server starts on http://127.0.0.1:26866. Confirm with:

curl http://127.0.0.1:26866/api/v1/health/

Development

# Run from source (auto-manages virtualenv + deps)
uv run cowork-server

When running alongside the Electron app in dev mode, the app spawns the server automatically — no manual start needed.

Dev setup helper

uv run cowork-dev-setup

Initializes the database and validates configuration.

Architecture

cowork/
  api/v1/endpoints/   # FastAPI route handlers
  services/           # Business logic
  models/             # SQLModel / DB models
  schemas/            # Pydantic request/response schemas
  db/                 # Database session and migrations
  common/             # Shared utilities, settings
  harnesses/          # Agent adapters (Anton, Hermes, etc.)

The server is designed to be agent-agnostic — core features (projects, conversations, files) are shared across agents, while agent-specific behavior lives in harness adapters. See docs/DESIGN.md for the full architectural rationale.

API

All endpoints live under /api/v1/. Key resource groups:

Path Description
/health Readiness probe
/projects Project CRUD and working-folder management
/conversations Conversation threads and message history
/responses Streaming agent responses (SSE)
/files OpenAI-compatible file uploads
/schedules Recurring task scheduling
/skills Agent skill definitions
/memory Persistent agent memory
/artifacts Agent-produced file previews
/publish Publish HTML artifacts to 4nton.ai
/connectors Third-party service connections and OAuth
/settings User preferences and API keys

Configuration

Configuration is read from the database (UserSettings table) and can be managed through the Settings UI in the desktop app or via PUT /api/v1/settings/.

Environment variables fall into two namespaces:

Server-level (COWORK_*) — control the cowork-server process itself:

Variable Default Description
COWORK_SERVER_PORT 26866 Server port
COWORK_SERVER_HOST 127.0.0.1 Bind address
COWORK_PROJECTS_DIR ~/.cowork/projects Project storage root
COWORK_FILES_DIR ~/.cowork/files Uploaded files root
COWORK_VAULT_DIR ~/.cowork/data-vault Connector credential vault

Harness-level (ANTON_*, HERMES_*) — configure a specific agent harness. These are read by the harness adapter, not by cowork-server core. They use the harness prefix because the upstream agent libraries (anton, hermes-agent) define them:

Variable Harness Description
ANTON_PUBLISH_URL Anton Artifact publish endpoint
ANTON_SKILLS_ROOT_DIR Anton Skill file storage
ANTON_GLOBAL_MEMORY_ROOT_DIR Anton Global memory files
HERMES_HOME / HERMES_ROOT_DIR Hermes Hermes data root

In Docker/Lightsail deployments, the container also receives ANTON_MINDS_API_KEY, ANTON_OPENAI_API_KEY, etc. — these are consumed by the Anton agent library directly (not by cowork-server settings), and are injected by the provisioning lambda via cloud-init user-data.

Docs

License

See LICENSE.

Project details


Download files

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

Source Distribution

cowork_server-0.1.2.tar.gz (453.2 kB view details)

Uploaded Source

Built Distribution

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

cowork_server-0.1.2-py3-none-any.whl (551.6 kB view details)

Uploaded Python 3

File details

Details for the file cowork_server-0.1.2.tar.gz.

File metadata

  • Download URL: cowork_server-0.1.2.tar.gz
  • Upload date:
  • Size: 453.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cowork_server-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c50e27aa9c0de166cf2883f4cd60b6e223ef29f4a06ec7e9401bd488257e5b69
MD5 b3dde0948252837ad61156958e0d06a7
BLAKE2b-256 5ce33eca818f7af13273f8eb55ec197cc4c27c858e8751b40cf10e1cf423d2a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for cowork_server-0.1.2.tar.gz:

Publisher: publish.yml on mindsdb/cowork-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cowork_server-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: cowork_server-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 551.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cowork_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9989203bd79582f56445a6e33b237ef86854eb6abb83c0d40be902e3f26dc3e6
MD5 ccfa358d393313c254401aa3a8c1c657
BLAKE2b-256 604c361a18a25b38b3b6a06812c37e89d99a3d74dd006109a09af8284091fb13

See more details on using hashes here.

Provenance

The following attestation bundles were made for cowork_server-0.1.2-py3-none-any.whl:

Publisher: publish.yml on mindsdb/cowork-server

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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