Cohub
中文Start a Space

Run Cohub as a self-hosted AI workspace on your own cluster

Cohub can run as a self-hosted AI workspace: deploy the Apache-2.0 source on your Kubernetes cluster, sign in through your OIDC provider, and point the agent at your own model keys.

Who
A team whose code, documents or model keys must stay on infrastructure it controls, and who still wants shared agent workspaces.
When
Security review rules out a hosted AI tool, or the team already runs Kubernetes and wants the agent next to its own data.
Why
Cohub is Apache-2.0, the hosted service runs the same codebase plus a private billing package, and the repository documents a production deployment with your own auth, storage and model keys.
Self-hosting architecture overview for Cohub listing the web app, API, worker, agent service, sandbox and gateway
Cohub self-hosting documentation (Apache-2.0 repository)
Cohub pricing page showing Free, Plus ($10/mo), Pro ($50/mo) and Max ($200/mo) alongside the Apache-2.0 self-hosting FAQ
Cohub home page facts: built in the open in a public Space, Apache-2.0, self-hostable
Source: cohub.live

Deploying Cohub on your own infrastructure keeps every Space's /workspace files, Save snapshots, and model keys inside a network you control, while teammates still work in the same shared Spaces, Chats, Apps, and external channels. The trade-off is operational ownership: you supply and maintain the production stack, authentication, and model credentials yourself.

What you run yourself

The Apache-2.0 repository ships the core product services, and a full production deployment expects you to run both the application tier and the backing infrastructure:

Layer What you operate
Web & API SvelteKit frontend (Cloudflare Workers or Node) and the Hono API service
Workers & Agent BullMQ workers for background or scheduled runs, plus the Agent control service
Sandbox Per-Space Linux runtime scheduled on Kubernetes
Gateway Channel bridge supporting Discord, Feishu, WeChat, and QQ
Storage Postgres, Redis, a shared filesystem, and S3-compatible object storage
Identity Your own OIDC provider (Logto or another OIDC-compatible service)

Users get the same collaboration model as hosted Cohub—Spaces with host, builder, and guest roles, per-Space Linux sandboxes with live port previews, immutable Saves, and published Apps across web, CLI, and SDK. Save history is written as Git packs directly into your S3-compatible bucket, so you do not have to run a separate Git hosting server for workspace checkpoints.

What you do not get on your own cluster

Self-hosting starts from the open-source codebase without the hosted operations layer around it:

  • Hosted billing stays off. Commerce and metered balance features are disabled by default in the open-source distribution.
  • Model endpoints are not bundled. Cohub does not supply API credits or hosted models on your cluster, and multimodal generation works only for the adapters and keys you configure.
  • Telemetry stays local unless configured. OpenTelemetry export is off by default; when OTLP variables are unset, services emit nothing to external collectors.
  • Kubernetes is still required for sandboxes. A full production setup expects Kubernetes to isolate and schedule per-Space sandboxes.

Keys and models you bring

Model access splits cleanly between platform-wide defaults and user-supplied providers. Platform operators configure shared provider connections in .cohub/models.json, which is the only layer allowed to reference service environment variables for secret injection.

Individual workspace users can still connect their own provider with a literal API key, as long as they register it under a provider name other than cohub. If your team relies on image, video, speech, or music generation inside Spaces, plan to configure those model adapters and keys alongside your chat models.

Who should self-host and who should not

Self-hosting fits organizations that already run Kubernetes, Postgres, Redis, S3-compatible storage, and an OIDC identity provider, and whose security policy forbids sending workspace files or model keys to a third-party hosted service.

It is usually too much overhead for small teams without cluster operations experience, or for developers who only want commands and file edits to stay on their own machine. If keeping execution local is your main goal, hosted Cohub paired with Local Runtime (cohub runtime up ./project) attaches a local directory to a Space so shell commands and edits happen on your hardware. Bear in mind that the agent control service and model calls remain on the hosted side, so Local Runtime keeps code execution local rather than making the entire stack private.

Where to go next

Once you have confirmed Kubernetes, Postgres, Redis, shared storage, S3-compatible object storage, and OIDC are ready on your side, follow Self-host Cohub for component setup and deployment order.

Reference in the docs

This page: Whether to self-host Cohub, what you would run and control, and the lighter option if a cluster is too much.

  • Core concepts: the objects a self-hosted instance serves: Spaces, Chats, Saves, Apps
  • CLI: pointing the CLI at a self-hosted API
  • Self-hosting: the self-hosting architecture, deploy templates and optional modules

FAQ

Is the self-hosted version a cut-down edition?

The repository is the product source, Apache-2.0. The differences the docs list are hosted billing (off by default) and the services you must provide: Kubernetes, Postgres, Redis, object storage and OIDC.

Can the CLI talk to my server?

Yes. Pass --base-url or set COHUB_BASE_URL, and set COHUB_AUTH_ISSUER and COHUB_AUTH_CLIENT_ID for your OIDC provider.

Sources

Published · Updated