# SecondStack Documentation

> SecondStack documentation — a self-hosted enterprise AI platform with SecondChat (chat), SecondGate (LLM gateway), SecondGuard guardrails, team budgets, RAG, and SecondAgent.

Canonical: <https://docs.secondstack.ai/>
Updated: 2026-07-07

---

SecondStack is a self-hosted enterprise AI platform. It gives your organization one place to run conversational AI — **SecondChat**, a chat app across Claude, GPT, Gemini, and self-hosted open-weight models; **SecondGate**, an LLM gateway with virtual keys, budgets, and **SecondGuard** guardrails; **SecondAgent**, an agentic AI coworker; Knowledge Collections for RAG; and admin plus user dashboards. Everything runs on infrastructure you control, so conversations, documents, and usage data never leave your environment.

## Explore the docs

	
		New to the platform? Read [what SecondStack is](/getting-started/what-is-secondstack/) and how it is [self-hosted](/getting-started/self-hosting/) on your own infrastructure.
	
	
		Explore [SecondChat](/features/chat-app/), the chat app that spans every provider, and [SecondAgent](/features/ai-agent/), the agent mode that runs Claude Code in sandboxed containers.
	
	
		Centralize traffic through [API Routing](/features/api-routing/), and manage models, providers, and policy from [ControlTower](/features/controltower/).
	
	
		Keep spend predictable with [Cost Management](/features/cost-management/), and ground answers in your own docs with [Knowledge Collections](/features/knowledge-collections/).
	

## What the platform includes

- **[SecondChat](/features/chat-app/)** — the multi-model chat app: image generation, voice input, file attachments, RAG, and agents.
- **[Cost Management](/features/cost-management/)** — per-user, per-team, and per-API-key budgets with threshold alerts and usage analytics.
- **[SecondAgent](/features/ai-agent/)** — the agent mode that runs Claude Code in per-thread Docker sandboxes with built-in Skills.
- **[Knowledge Collections](/features/knowledge-collections/)** — named, shareable document sets auto-indexed for retrieval inside any chat.
- **[SecondGate](/features/api-routing/)** — the LLM API gateway with virtual API keys, SecondGuard guardrails, and spend observability.
- **[ControlTower](/features/controltower/)** — the admin dashboard for models, providers, prompts, guardrails, and access control.
- **[User Dashboard](/features/user-dashboard/)** — self-service API keys, personal budgets, and per-request usage logs.
