SecondStack for developers
On this page
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/apiwith ansg_key. Call SecondGate from your code 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 claudeandsecondstack codexrun the tools you already have through the gateway, on subscription seats or on a key. Run Claude Code through SecondGate 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 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 shows the widget, and an administrator registers Applications in ControlTower.
Every door ends in the same place. SecondGuard masks what your rules say, SecondGate carries the request, and your dashboard shows the record and the budget.
In this section
- Call SecondGate from your code
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
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
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, Self-hosting, What is SecondStack