> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sazabi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deepsec

> Give the Sazabi agent the Deepsec CLI (deepsec) in its sandbox to run agent-powered vulnerability scans.

[All Deepsec integration capabilities](https://docs.sazabi.com/catalogs/integrations/deepsec)

## About

This CLI connection makes the Deepsec CLI (`deepsec`), an agent-powered vulnerability scanner, available in the Sazabi agent's sandbox. The tool is baked into the sandbox image; it needs no credentials, though you can supply AI provider keys to configure the underlying model.

## Prerequisites

* A Sazabi project.
* No required credentials. Deepsec can run without explicit credentials, though you may optionally provide AI provider keys to control which model it uses.

## Set up in the dashboard

Configure the sandbox in the dashboard under [**Settings > Sandbox CLIs**](https://app.sazabi.com/settings/sandbox-clis).

**Step 1**

### Find Deepsec in the catalog

In [**Settings > Sandbox CLIs**](https://app.sazabi.com/settings/sandbox-clis), find Deepsec under **Browse sandbox CLIs** and choose to connect it.

**Step 2**

### Provide credentials

No credentials are required. Optionally, provide one or more of the following to configure AI provider access: `AI_GATEWAY_API_KEY` — an AI gateway key; `ANTHROPIC_AUTH_TOKEN` — an Anthropic API key; `OPENAI_API_KEY` — an OpenAI API key; `ANTHROPIC_BASE_URL` — a custom Anthropic base URL; `OPENAI_BASE_URL` — a custom OpenAI base URL. Save to store them securely; Sazabi injects them into the sandbox when the agent runs.

## Set up with the CLI

You can also configure the Deepsec CLI connection with the [Sazabi CLI](https://docs.sazabi.com/reference/cli.md) (installed and authenticated — see [CLI reference](https://docs.sazabi.com/reference/cli/sandbox-clis.md)).

Deepsec needs no required credentials, but the CLI currently requires at least one `--env` flag — so from the CLI, enable it while passing an AI provider key to choose the model:

```bash theme={"system"}
sazabi sandbox-clis connect deepsec --env ANTHROPIC_AUTH_TOKEN=<your-anthropic-key>
```

To enable Deepsec with no environment variables at all, use the dashboard path above. To validate the configuration without saving, run the same command with `test` in place of `connect`.

## Verify

Ask the agent, in a thread, to run the `deepsec` CLI and confirm it returns output. If the command is not found, the CLI connection may not be enabled.

## Troubleshooting

**Command not found** — Confirm the Deepsec CLI connection is enabled for the project under [**Settings > Sandbox CLIs**](https://app.sazabi.com/settings/sandbox-clis).

**Model calls fail** — If you supplied AI provider keys, recheck them; a rotated or revoked key must be re-entered under [**Settings > Sandbox CLIs**](https://app.sazabi.com/settings/sandbox-clis) or with `sazabi sandbox-clis connect deepsec`.

## Further reading

> [card] [Working with the agent](https://docs.sazabi.com/guides/investigate/working-with-the-agent.md)
>
> Put the connected CLI to work in an investigation thread.

> [card] [Set up the sandbox](https://docs.sazabi.com/guides/investigate/sandbox.md)
>
> How the sandbox works and its security model.

> [card] [Sandbox CLIs](https://docs.sazabi.com/catalogs/sandbox-clis.md)
>
> Browse the catalog and connect more tools.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.