Spens

Run coding agents in sandboxes and see everything they do

Working when we checked on .

Visit Spens

What is Spens?

Spens runs coding agents in sandboxed Docker containers and records everything they do, including LLM traffic, tool calls, HTTP requests, and file changes. It is aimed at developers who want to run AI coding agents unattended while keeping control over security and network access. Users can define which domains an agent may contact and which HTTP methods it allows, with non-HTTP protocols always blocked. API keys stay outside the container, swapped in only for requests to approved domains. After a session, a local web viewer shows exactly what the agent did, and file changes can be accepted or rolled back.

Spens pricing

Pricing model: Free

Spens pros

  • Agents run isolated as unprivileged users in sandboxed Docker containers
  • Every LLM API call, tool invocation, HTTP request, and file change is logged
  • Domain and HTTP method rules let users control agent network access; non-HTTP protocols are blocked
  • API keys never enter the agent container; placeholders are swapped only for approved domains
  • Supports unattended 'yolo mode' runs with full log review and rollback of file changes
  • Open source, installable via pip or uv

Spens cons

  • Requires Python 3.11+ and Docker
  • On macOS, OrbStack is required
  • No pricing or support plans are documented

Frequently asked questions about Spens

What does Spens do?

Spens runs coding agents in sandboxed Docker containers, intercepts every network call, and logs everything including LLM traffic, tool calls, and file changes, so users can review exactly what the agent did line by line.

Who is Spens for?

It is for developers who want to run AI coding agents safely and autonomously, with full visibility into what the agent did and the ability to accept or roll back its changes.

What are the requirements to install Spens?

It requires Python 3.11+ and Docker. On macOS, OrbStack is also required. It can be installed with pip (pip install spens-ai) or with uv.

How does Spens handle secrets and API keys?

API keys never enter the agent's container. The agent only sees a placeholder, which is swapped for the real key only for requests to approved domains.

Can I control which websites my agent can access?

Yes. Users define domain rules deciding which domains the agent may contact and which HTTP methods it may use. Non-HTTP protocols are always blocked, and any host not explicitly allowed is blocked.

What is 'yolo mode'?

Yolo mode lets an agent run unattended with a given prompt. After the session, users review the full log and can accept or roll back the agent's file changes.

How do I review what an agent did after a session?

Every LLM API call, tool invocation, HTTP request, and file change is captured, and can be reviewed line by line in a local web-based log viewer after the session ends.

How is the agent sandboxed?

The agent runs in a Docker container isolated from the host machine, as an unprivileged user that cannot touch the home directory or system files.

How do I get started with Spens?

Install with pip or uv, run 'spens init' in a project directory to set up domain rules and secret injection, then launch an agent such as 'spens node-24 pi .' pointing at the workspace.

Is Spens open source?

Yes. The source is available on GitLab (gitlab.com/refwd1/spens) and the tool can be installed via pip or uv. No pricing plans are shown.

Categories

Use cases

Alternatives to Spens

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z