Spaces
How to create and manage Cohub Spaces, configure Space Settings, use your Home Space for user-level rules and models, and inspect activity and usage.
This page explains how to create, configure, pin, and archive Spaces, what your Home Space (home) stores, where every Space Settings control lives, and which cohub spaces commands manage them.
What a Space holds
A Space is a project container. It brings together:
- Chats for interactive and scheduled Agent work
- Files and Boards inside
/workspace(cloud Sandbox or a connected local Runtime) - Saves (immutable workspace snapshots for inspection, diffing, and forking)
- Apps published from a workspace file, directory, or port
- Settings for access control, environment variables, Mods, external Channels, Sandbox compute, Space wallet, and Commerce
Space lifecycle
Create a Space
- Web: Open Library → Spaces (
/spaces) and click New Space (/spaces/new), or fork from an existing Save via New space (/spaces/new?checkpointId=<id>). - CLI:
-n, --nameis required; optional flags select a checkpoint, Sandbox image, compute spec, or hibernation policy:
cohub spaces create -n "docs-site" -d "Product docs workspace"
cohub spaces create -n "docs-fork" --checkpoint <checkpointId>
cohub spaces create -n "game-proto" --image game --spec boost --auto-destroy idle --idle-ttl 3600
--image accepts default or game; --spec accepts standard, boost, or ultra; --auto-destroy accepts idle or never; --idle-ttl accepts seconds up to 2592000 (30 days).
Name, slug, avatar, and like sticker
Configure public identity in Space settings → Profile (/spaces/:id/settings#profile) or from the CLI:
- Slug: 1–80 lowercase ASCII letters, digits, hyphens, or underscores, with no leading or trailing separators (reserved slugs are rejected). Combined with your account username, it forms
/:username/:spaceSlug. Changing a Space slug redirects the old address to the Space until another Space uses that old slug. - Avatar and description: Upload an avatar image and edit the Space description in Profile.
- Like sticker: Replaces the default heart on the Space's published Apps (PNG, GIF, or WebP up to 1 MB).
cohub spaces update <space> --name "Docs Site" --slug docs-site
cohub spaces rename <space> "Docs Site"
cohub -s <space> spaces avatar ./avatar.png
cohub -s <space> spaces like-sticker ./sticker.webp
cohub -s <space> spaces like-sticker --clear
Pin and archive
Both pinning and archiving apply to your personal view only (via user labels user:pinned and user:archived; see Profile, Labels & Referrals):
- Pin: Keeps a Space in your Pinned view (
cohub spaces ls --pinned). - Archive: Hides a Space from your default lists and pickers and removes its
Pinnedlabel. Restore it at any time from the Archived filter (Unarchive) or via CLI.
cohub spaces pin <space>
cohub spaces unpin <space>
cohub spaces archive <space1> <space2>
cohub spaces ls --archived
cohub spaces unarchive <space1>
Home Space (home)
Your Home Space is a personal Space with the slug home. Open it from Settings → User Rules → Open Home Space (/settings/rules) or target it in the CLI with -s home.
User-level files in Home Space
When you create a Save in your Home Space, Cohub publishes four whitelisted paths from its workspace (symlinks inside published paths are rejected):
| Path in Home Space | What it configures | How it takes effect |
|---|---|---|
AGENTS.md |
User Rules — mounted read-only at /configs/user/AGENTS.md and included in every new Chat context |
Published on Home Space Save (previewed in Settings → User Rules) |
CLAUDE.md |
Additional user-level agent instructions | Published on Home Space Save |
.agents/ |
User-level skills and prompt templates | Published on Home Space Save |
.cohub/ |
User-level config such as .cohub/models.json (custom providers and per-model overrides like contextWindow) and .cohub/speech.json (user read-aloud voice) |
Published on Home Space Save |
In addition, .cohub/agent.json in your Home Space controls follow-up queue delivery (together or one_by_one) directly from the workspace (must be a regular file inside the workspace, at most 4,096 bytes).
Do not put tokens, passwords, private keys, or sensitive personal data in AGENTS.md (User Rules): published rules are sent to the model as part of the system context.
CLI default fallback
When -s <space>, COHUB_SPACE_ID, and a local Runtime directory binding are all unset, cohub prompt, cohub completion, cohub decision, cohub generate, cohub apps, and cohub public fall back to your home Space. Other Space-scoped commands (spaces files, spaces checkpoints, run) fail until you supply a Space target.
Space Settings
Open /spaces/:id/settings from Settings in the Space sidebar.
- Header actions: Space wallet (
/spaces/:id/wallet) and Commerce (/spaces/:id/settings/commerce) — see Billing, Wallet & Commerce. - Five sections (left sidebar nav on desktop, top filter chips on mobile):
| Section | Anchor | What it configures |
|---|---|---|
| Profile | #profile |
Avatar, Space name, slug (/:username/:spaceSlug), description, Space ID, and Like sticker |
| Access | #access |
Default role for signed-in users and anonymous visitors, custom guest App (--guest-app), members and roles (host, builder, guest), invite links, and App access — see Members, invites & access |
| Environment | #environment |
Sandbox environment variables and mounted Spaces (Mods under /mods/<slug>) — see Mods, Skills & Prompts |
| Channels | #channels |
External channel bindings (Discord, Feishu/Lark, WeChat, QQ), per-channel default model, and mention requirements in Discord guilds or Feishu groups — see Channels |
| Sandbox | #sandbox |
Sandbox status, compute spec, hibernation/auto-destroy policy, workspace storage usage, image, and startup setup status — see Files & Sandbox |
Activity and usage
- Web: Open Activity (
/spaces/:id/activity) from the Space sidebar to view totals, daily heatmap, contributors, and rankings. Cost figures appear only when your role permits viewing Space cost. - CLI:
cohub -s <space> spaces activity
cohub -s <space> spaces activity 7 --json
cohub -s <space> spaces usage
cohub -s <space> spaces usage 90 --json
spaces activity [days] defaults to 30 days (maximum 365) and reports usage, contributors, and rankings. spaces usage [days] defaults to 30 days (minimum 1) and reports token, request, success, error, and cost totals.
CLI reference (cohub spaces)
Key Space management commands and verified flags:
cohub spaces ls [--mine] [--pinned] [--archived] [--json]
cohub spaces get [space] [--json]
cohub spaces create -n <name> [-d <desc>] [--checkpoint <id>] [--image <default|game>] [--spec <standard|boost|ultra>] [--auto-destroy <idle|never>] [--idle-ttl <seconds>] [--json]
cohub spaces update <space> [--name <name>] [--slug <slug>] [--json]
cohub spaces rename <space> <name>
cohub -s <space> spaces avatar <path> [--json]
cohub -s <space> spaces like-sticker [path] [--clear] [--json]
cohub spaces config <space> [--auto-destroy <idle|never>] [--idle-ttl <seconds>] [--spec <standard|boost|ultra|auto>] [--image <default|game|auto>] [--guest-app <id|slug|none>] [--json]
cohub -s <space> spaces setup [space] [--json]
cohub spaces pin <space>
cohub spaces unpin <space>
cohub spaces archive <spaces...> [--json]
cohub spaces unarchive <spaces...> [--json]
cohub -s <space> spaces activity [days] [--json]
cohub -s <space> spaces usage [days] [--json]
cohub spaces also groups subcommands for files, checkpoints, sessions, turns, members, access, app-access, invites, mods, labels, webhooks, displays, wallet, and commerce.
Boundaries and common failures
- What a Space is not: A Space is not a Save (an immutable snapshot of workspace files and Boards), not a Board (a
.boardcanvas file stored inside a Space), and not a public App (a published file, directory, or port with its own App slug and visibility). - Archived Spaces remain accessible and unchanged: Archiving a Space only attaches your personal
user:archivedlabel (and removesPinned). It does not delete files, Chats, Saves, or published Apps, and does not archive the Space for other members. You can still open an archived Space by direct URL/ID, target it withcohub -s <space>, list it viacohub spaces ls --archived, and restore it withcohub spaces unarchive <space>. Permanent Space deletion is not publicly documented in the current UI or CLI. - Home Space name collision: If you already have a Space named
Homewith a different slug, opening Home Space from Settings → User Rules fails until you set that Space's slug tohomein Space settings → Profile. - Home Space changes need a Save: Editing
AGENTS.md,CLAUDE.md,.agents/,.cohub/models.json, or.cohub/speech.jsonin your Home Space does not take effect until you create a Save in Home Space. Symlinks inside published config paths are rejected. - Mod and Sandbox changes require restart: Adding, toggling, changing the mount slug of, or removing a Mod in Environment restarts the Sandbox. Changing compute spec or image on a running Sandbox marks a pending restart until the Sandbox restarts.
Next steps
- Chats — run prompts, manage queued follow-ups, and use shortcuts
- Files & Sandbox — work with workspace files, ports, and cloud Sandboxes
- Saves — create immutable snapshots, inspect diffs, and fork Spaces
- Apps — publish a file, directory, or port from a Space
- BYOK — configure custom providers in Home Space
.cohub/models.json - CLI — full command reference and target-Space resolution