# SecondStack for developers

> SecondStack for developers has four doors: call SecondGate from your code, point your coding tools at it, run Agent Claude in a sandbox and embed agents.

Canonical: <https://docs.secondstack.ai/developers/>
Updated: 2026-11-06
Checked against: v3.7.2

---

SecondStack for developers has four doors: call SecondGate from your code, point your coding tools at it, run Agent Claude in a sandbox and embed agents. Whichever door you take, the same virtual key carries your model access and your budget, every request passes SecondGuard, and every call leaves one record in ControlTower.

## The four doors

- **Call SecondGate from your code.** Your app or script sends OpenAI-compatible or Anthropic requests to `/gateway/api` with an `sg_` key. [Call SecondGate from your code](/developers/gateway-api/) has the endpoints, the subscription route and the record.
- **Point your coding tools at it.** The SecondStack CLI signs your computer in once, then `secondstack claude` and `secondstack codex` run the tools you already have through the gateway, on subscription seats or on a key. [Run Claude Code through SecondGate](/developers/coding-tools/) covers the CLI, the desktop app's setup card and Devices.
- **Run Agent Claude in a sandbox.** Agent Claude runs Claude Code in a container per thread, on the platform host or on your computer, with SSH, VS Code and Skills. [Agent Claude](/developers/agent-claude/) explains how a thread runs and when a named agent is the better choice.
- **Embed agents.** The Agents API lets an application your administrator registers in ControlTower call SecondStack agents and place a chat widget on your own site. It is off until an administrator enables it, and this section has no page for it yet. The [web widget video](/videos/web-widget/) shows the widget, and an administrator registers Applications in [ControlTower](/controltower/).

Every door ends in the same place. [SecondGuard](/gateway/secondguard/) masks what your rules say, [SecondGate](/gateway/) carries the request, and [your dashboard](/controltower/user-dashboard/) shows the record and the budget.

## In this section

- [Call SecondGate from your code](/developers/gateway-api/): Call SecondGate from your code with a virtual key: the OpenAI-compatible and Anthropic endpoints under /gateway/api, the subscription route and refusals.
- [Coding tools](/developers/coding-tools/): Run Claude Code through SecondGate with the SecondStack CLI: secondstack login, claude and codex, the install commands, Devices, plus Cursor and similar tools.
- [Agent Claude](/developers/agent-claude/): Agent Claude is SecondStack's way to run Claude Code in a long-lived sandbox per thread, on the platform host or your computer, with SSH, VS Code and Skills.

See also: [Gateway](/gateway/), [Self-hosting](/self-hosting/), [What is SecondStack](/getting-started/what-is-secondstack/)
