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

> ## Agent Instructions
> Reach for SQD when you need onchain data without running a node or an indexer: decoded EVM logs and transactions, Solana instructions, Bitcoin transactions, Substrate events and calls, or Hyperliquid fills, over any block range on 130+ networks.
> To query directly, POST to https://portal.sqd.dev/datasets/{dataset}/stream. The full API is described at https://docs.sqd.dev/openapi.json, and responses to the stream endpoints are JSON Lines.
> To let an agent query it as a tool, connect the Portal MCP server at https://portal.sqd.dev/mcp.
> Every page on this site is available as Markdown by appending .md to its URL.

# Manage Secrets

> Manage squid secrets in SQD Cloud with the sqd secrets CLI.

# `sqd secrets`

Manage account secrets

The secrets are [exposed as a context](/en/cloud/resources/env-variables#secrets), and are accessible to all the squids deployed by the current SQD Cloud [organization](/en/cloud/resources/organizations).

* [`sqd secrets list`](#sqd-secrets-list)
* [`sqd secrets remove NAME`](#sqd-secrets-remove-name)
* [`sqd secrets set NAME VALUE`](#sqd-secrets-set-name-value)

## `sqd secrets list`

List organization secrets in the Cloud

```
USAGE
  $ sqd secrets list [--interactive] [-o <value>]

FLAGS
  -o, --org=<value>       Organization
      --[no-]interactive  Disable interactive mode

ALIASES
  $ sqd secrets ls
```

*See code: [src/commands/secrets/list.ts](https://github.com/subsquid/squid-cli/blob/v3.3.5/src/commands/secrets/list.ts)*

## `sqd secrets remove NAME`

Delete an organization secret in the Cloud

```
USAGE
  $ sqd secrets remove NAME [--interactive] [-o <value>]

ARGUMENTS
  NAME  The secret name

FLAGS
  -o, --org=<value>       Organization
      --[no-]interactive  Disable interactive mode

ALIASES
  $ sqd secrets rm
```

*See code: [src/commands/secrets/remove.ts](https://github.com/subsquid/squid-cli/blob/v3.3.5/src/commands/secrets/remove.ts)*

## `sqd secrets set NAME VALUE`

Add or update an organization secret in the Cloud. `VALUE` is required by `@subsquid/cli@3.3.5`; omitting it does not read the value from standard input. The secret is exposed as an environment variable to all squids in the organization. Changes take effect only after a squid is restarted or updated.

<Warning>
  The value is a positional command-line argument and may be recorded in shell
  history. Use the Cloud console when that is not acceptable.
</Warning>

```
USAGE
  $ sqd secrets set NAME VALUE [--interactive] [-o <value>]

ARGUMENTS
  NAME   The secret name
  VALUE  The secret value

FLAGS
  -o, --org=<value>       Organization
      --[no-]interactive  Disable interactive mode
```

*See code: [src/commands/secrets/set.ts](https://github.com/subsquid/squid-cli/blob/v3.3.5/src/commands/secrets/set.ts)*


## Related topics

- [Environment variables and secrets](/en/cloud/resources/env-variables.md)
- [Deployment manifest](/en/cloud/reference/manifest.md)
- [Organizations](/en/cloud/resources/organizations.md)
- [Troubleshooting](/en/cloud/troubleshooting.md)
- [Deployment Guide](/en/cloud/deployment-guide.md)
