Denied Logo

Quickstart

Get your API key, connect your agent and start authorizing requests

This guide walks you through the end-to-end flow: from setting up your project's policies to sending your first authorization request.

Prerequisites

  • A Denied account (sign in here)
  • An organization and active project created

Get your API Key

API keys authenticate your application when sending authorization requests to Denied.

  1. Open the Denied dashboard and select your project
  2. Go to SettingsSecrets
  3. Click Reveal Key and copy it (dnd_pk_*)

Install the SDK

Integrate Denied SDK into your application to send authorization requests to Denied.

Install the plugin

openclaw plugins install @denied-dev/denied-openclaw-plugin

Set your API key as an environment variable

export DENIED_API_KEY="your-api-key"

Restart the gateway

openclaw gateway restart

For other OpenClaw installation options, see the full installation guide here

Install the marketplace and plugin

claude plugin marketplace add denied-dev/denied-sdk
claude plugin install denied-dev-hook

Set your API key as an environment variable

export DENIED_API_KEY="your-api-key"

Restart Claude Code

claude

For other Claude Code installation options, see the full installation guide here

We support low-level language-specific SDKs:

  • Python SDK: to install and use, visit the full documentation here
  • TypeScript SDK: to install and use, visit the full documentation here

In the installation process, use the API key you copied earlier.

From now on, Denied will block all requests by default. You need to create policies to allow specific actions.

Create Your First Policy

We'll create a policy from one of the available templates.

  1. Open the Denied dashboard and select your project
  2. Go to Policy StudioPolicies
  3. Click New Policy
  4. Click Start from a template and select a policy that best fits your use case
  5. Click Save Policy

Policy template

Iterate on Your Policies

  1. Start using your application, it will now send authorization requests to Denied.
  2. Go to MonitoringLogging to see the authorization decisions being made.
  3. Select a log entry to use as context for policy refinement and click Create Policy.
  4. Describe what to allow or deny and the AI will assist you in refining your policies as needed.

Policy editor

Save the policy, test your agent and continue to iterate on your policies with the same process.

On this page