Mosaic CLI Docs 中文

Overview

Mosaic CLI Documentation

Mosaic is a Rust-first local agent runtime and operations CLI. This documentation is structured for fast setup, profile configuration, and production diagnosis.

Scope: CLI-first delivery. Web and desktop shells are out of this phase.

Current command scope

  • Core: setup, configure, models, ask, chat, tui, session
  • Operations: status, health, doctor, logs, system
  • Runtime: channels, gateway, approvals, sandbox, memory, knowledge, security

First 4 commands

mosaic --project-state setup \
  --base-url https://api.openai.com \
  --api-key-env OPENAI_API_KEY \
  --model gpt-4o-mini

mosaic --project-state models list
mosaic --project-state ask "hello"
mosaic --project-state chat
mosaic --project-state tui

Reading map

Quickstart

10-minute path to first successful ask/chat run.

Open Quickstart

Learning Path

Detailed progression from beginner to advanced.

Open Learning Path

Agents Guide

Step-by-step tutorial for the agents module and routing.

Open Agents Guide

Operations

Runbook for channels, gateway, policy, and diagnostics.

Open Operations

Module Deep Dives