# Second ## Docs - [Agent System](https://docs.second.so/agent-system.md): How Second runs AI agents — the worker, bridge layer, and provider abstraction. - [App Agents](https://docs.second.so/app-agents.md): How apps trigger approved AI agents with scoped tools, streaming, and background execution. - [App Data](https://docs.second.so/app-data.md): How apps persist scoped data in MongoDB with live updates and governed agent access. - [App Governance](https://docs.second.so/app-governance.md): How drafts, reviews, integrations, agent config, and published runtime state stay under workspace control. - [App Preview](https://docs.second.so/app-preview.md): How Second builds, previews, and persists Vite artifacts using done_building. - [Architecture](https://docs.second.so/architecture.md): How Second's governed workspace architecture connects the browser, web app, worker, and database. - [Authentication](https://docs.second.so/authentication.md): Choose between local no-auth mode and an external auth provider. - [Contributing](https://docs.second.so/contributing.md): Contribute to Second: local setup, quality checks, and pull request expectations. - [Deployed Slowness Playbook](https://docs.second.so/deployed-slowness-playbook.md): How to diagnose staging or production slowness with perf traces, Kubernetes events, and request amplification checks. - [Development](https://docs.second.so/development.md): Set up the repository, scripts, and environment variables for local development. - [Enterprise Deployment and Security](https://docs.second.so/enterprise.md): How Second fits into customer-owned infrastructure, auth, OAuth apps, secrets, app-agent governance, and audit review. - [Guard and Tenancy](https://docs.second.so/guard-and-tenancy.md): How Second enforces workspace isolation, access control, and scoped database queries. - [Get started with Second](https://docs.second.so/index.md): A governed workspace for building custom internal software — where your team and AI agents work together on the same generated interfaces. - [Integrations](https://docs.second.so/integrations.md): How Second keeps static secrets and OAuth tokens under server control while app agents use approved custom HTTP tools. - [Runtimes, Models & Usage Tracking](https://docs.second.so/models-and-usage.md): How runtime/model selection works, what happens under the hood, and how costs are tracked per-app and per-model. - [Product analytics](https://docs.second.so/product-analytics.md): How Second captures PostHog events while preserving the anonymized usage-data setting. - [Quickstart](https://docs.second.so/quickstart.md): Run Second locally and build your first app with an AI agent. - [Self-hosting](https://docs.second.so/self-hosting.md): Deploy Second with your own MongoDB, Redis, authentication provider, and workspace governance controls. - [Streaming](https://docs.second.so/streaming.md): How agent responses stream from the worker to the browser — protocols, translation, persistence, and multi-client resume. - [Worker](https://docs.second.so/worker.md): The standalone agent worker — HTTP API, session management, workspace isolation, tool permissions, and SDK integration. ## OpenAPI Specs - [openapi](https://docs.second.so/api-reference/openapi.json)