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.4.tar.gz (456.6 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.4-py3-none-any.whl (558.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cowork_server-0.1.4.tar.gz
  • Upload date:
  • Size: 456.6 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.4.tar.gz
Algorithm Hash digest
SHA256 b1cd75e92c4c851086334281738e1c333360bc3a1ff4b406a11059add6a48455
MD5 6de79d0250b620d4f64ab585aea48a7b
BLAKE2b-256 d1f4005523e16fb9e9fa4af68804af81baea1543815fa2a9f5053c74db3942a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for cowork_server-0.1.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: cowork_server-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 558.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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9c6e0ed38a439cd18ea599f09d84e6032ad6c8df518d65bba5f800cda9fbd65f
MD5 2a2644c0fedcccd922ee9b5fa0a4c1e9
BLAKE2b-256 66b6a56ec22611d0799ac309148e64c8fce00f905a08a138be8f332ef2cd87c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for cowork_server-0.1.4-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