---
title: "AI agent sandbox guides: build one working result"
description: "Hands-on Cohub guides ordered by finished artifact: inspect sandbox limits, drive Spaces via CLI, run Claude Code or Codex, automate jobs, or self-host."
lang: "en"
canonical: "https://cohub.live/guides"
image: "https://cohub.live/_seo/og/guides.png"
updated: "2026-12-02"
---

# Hands-on AI agent sandbox guides, grouped by what you finish with

Every guide walks from a stated prerequisite to one verified output—a running CLI session, a shared skill, a daily digest, or a self-hosted cluster.

## Guides vs reference docs

Every page in this section follows one concrete workflow from setup to a verifiable artifact, recording real command outputs and where a feature stops. When you need full parameter tables, API schemas, or UI definitions, use the [Cohub reference documentation](https://cohub.live/docs) instead.

## Four tracks by what you finish with

### Track 1: Inspect the sandbox and drive it from your terminal

Start here if you want to understand what a per-Space Linux runtime actually isolates before trusting it with code or credentials. You can first [verify what a Cohub sandbox isolates](https://cohub.live/guides/ai-agent-sandbox)—testing `/workspace` persistence, `/tmp` resets, and outbound network behavior—then [operate a Space from the terminal CLI](https://cohub.live/guides/ai-agent-cli) to create Spaces, upload files, and run prompts without touching the browser.

### Track 2: Run Claude Code or Codex in a Space

If your team already relies on terminal coding agents, pick the guide that matches your harness and machine setup. Follow [run Claude Code in a cloud sandbox](https://cohub.live/guides/run-claude-code-in-cloud) to keep long sessions running on hosted Linux, or [choose Local Runtime or cloud CLI for Codex](https://cohub.live/guides/codex-in-a-space) to decide when source files should stay on your own laptop via `cohub runtime up`.

### Track 3: Package a reusable skill and a daily automated job

Once basic prompts work, stop repeating the same instructions across projects. Learn how to [write and mount a shared SKILL.md](https://cohub.live/guides/write-skill-md-file) via a read-only Mod, then combine cron scheduling with workspace hooks to [automate a morning GitHub issues digest](https://cohub.live/guides/github-issues-digest) that writes a fresh report on schedule.

### Track 4: Build 3D Board visuals or self-host the platform

Two specialist walkthroughs cover graphics rendering and infrastructure ownership. Engineers embedding interactive 3D scenes into a 2D canvas can [decide how to render 3D models in PixiJS](https://cohub.live/guides/pixijs-3d-models), while platform teams ready to own compute, OIDC auth, and model keys can [deploy a self-hosted Cohub cluster](https://cohub.live/guides/self-host-cohub) under Apache-2.0.

## What you need before starting

| Track | Prerequisite | Finished artifact |
|---|---|---|
| 1. Sandbox & CLI | A Cohub account and Node.js for the CLI | Verified sandbox boundary checks and working CLI commands |
| 2. Claude Code & Codex | A Cohub Space plus your Claude or OpenAI credentials | A live coding agent session running in cloud or via Local Runtime |
| 3. Shared skills & cron | Two Spaces (skills source + target) and a GitHub token | A mounted `SKILL.md` Mod and a recurring morning digest report |
| 4. 3D Boards & self-host | A Board Space (PixiJS) or Kubernetes cluster + OIDC + model keys | A chosen 3D rendering architecture or a running self-hosted Cohub instance |

- [Use the Cohub AI agent CLI to run commands and prompt Spaces from your terminal](https://cohub.live/guides/ai-agent-cli): The Cohub CLI is a terminal for Cohub Spaces. It does not run a model by itself: it sends prompts to the agent in a Space and lists or runs what the Space holds. A Local Runtime on your computer can run a harness such as Codex or Claude Code.
- [What an AI agent sandbox isolates in a Cohub Space, and what stays reachable](https://cohub.live/guides/ai-agent-sandbox): In Cohub the agent's sandbox is the Space's own Linux environment: one runtime per Space, the project on a persistent volume, a fixed CPU and memory quota. A fresh container per command would start clean each time; this one keeps state, so what matters is what it keeps and what it shares.
- [Run Codex in a Cohub Space via Local Runtime or cloud CLI](https://cohub.live/guides/codex-in-a-space): If your task needs Codex to run shell commands, connect a trusted project host through Cohub Local Runtime and keep Codex’s sandbox enabled. Installing the CLI in a cloud Space puts it next to the cloud files, but even a working login won’t help if the host cannot start the inner sandbox.
- [Build a daily GitHub issues digest with a scheduled prompt and a Space hook](https://cohub.live/guides/github-issues-digest): To get a GitHub issues digest every morning in Cohub, schedule a prompt that runs a digest skill in a fixed Chat, and add a Space hook that posts each new digest file to a webhook as soon as it is written.
- [When to render a PixiJS 3D model on a shared canvas instead of a separate viewer](https://cohub.live/guides/pixijs-3d-models): Turn the buoy on the dial. The orange tag follows its wind sensor; the grey tag stays on the box. Which one does your 2D editor need? A box label can live outside the viewer. A sensor label needs a position from inside the model.
- [How to run Claude Code in the cloud inside a Cohub Space](https://cohub.live/guides/run-claude-code-in-cloud): To run Claude Code in the cloud on Cohub, install it in a Space's sandbox with a startup script. The walkthrough checks CLI authentication with placeholder keys, then shows how to publish a server and recover project files with Saves.
- [Deploy Cohub as a self hosted AI agent platform on your own cluster](https://cohub.live/guides/self-host-cohub): To self-host an AI agent platform with Cohub, provision Kubernetes, Postgres, Redis, shared storage, S3-compatible object storage and an OIDC provider, then deploy each service from the repository's templates.
- [How to write a SKILL.md file and reuse it across Cohub Spaces](https://cohub.live/guides/write-skill-md-file): To write a SKILL.md file for Cohub, put a folder with SKILL.md (name and description in front matter, steps in the body) under .agents/skills/ in a Space; to reuse it, save that Space and mount it as a Mod wherever it is needed.
