Install the gateway in one command

Check it with verdictan doctor, then send your first governed request.

Download for Linux x64

curl -fsSL https://verdictan.com/install | sh

Set up the gateway

macOS

Shell installer or the archive for your Mac.

  1. 1

    Install the gateway

    Use Shell installer or the archive for your Mac.

    curl -fsSL https://verdictan.com/install | sh
  2. 2

    Verify the installation

    Run verdictan --version, then verdictan doctor.

    verdictan --version
    verdictan doctor
  3. 3

    Create a starter configuration

    verdictan init writes policy-config.yaml. Review it before you route traffic.

    verdictan init
  4. 4

    Test and deploy the policy

    Lint and test the policy, then deploy it to the local-evaluation agent in Configurations.

    verdictan policy lint --file policy-config.yaml
    verdictan policy test --json
    Open Configurations in Console
  5. 5

    Start the gateway

    Export the gateway token and upstream settings, then start.

    # VERDICTAN_API_TOKEN holds this gateway's gateway token.
    export VERDICTAN_API_TOKEN="vdt_your_gateway_token"
    export VERDICTAN_UPSTREAM_URL="https://api.openai.com"
    export VERDICTAN_UPSTREAM_API_KEY="sk-..."
    verdictan gateway run --listen 0.0.0.0:41002 --agent local-evaluation

Linux (x86_64)

Shell installer or archive from GitHub Releases.

  1. 1

    Install the gateway

    Run the shell installer from GitHub Releases.

    curl -fsSL https://verdictan.com/install | sh
  2. 2

    Verify the installation

    Run verdictan --version, then verdictan doctor.

    verdictan --version
    verdictan doctor
  3. 3

    Create a starter configuration

    verdictan init writes policy-config.yaml. Review it before you route traffic.

    verdictan init
  4. 4

    Test and deploy the policy

    Lint and test the policy, then deploy it to the local-evaluation agent in Configurations.

    verdictan policy lint --file policy-config.yaml
    verdictan policy test --json
    Open Configurations in Console
  5. 5

    Start the gateway

    Export the gateway token and upstream settings, then start.

    # VERDICTAN_API_TOKEN holds this gateway's gateway token.
    export VERDICTAN_API_TOKEN="vdt_your_gateway_token"
    export VERDICTAN_UPSTREAM_URL="https://api.openai.com"
    export VERDICTAN_UPSTREAM_API_KEY="sk-..."
    verdictan gateway run --listen 0.0.0.0:41002 --agent local-evaluation

Linux (ARM64)

Shell installer or archive for ARM64 Linux systems.

  1. 1

    Install the gateway

    Run the shell installer, or extract the archive into /usr/local/bin.

    curl -fsSL https://verdictan.com/install | sh
  2. 2

    Verify the installation

    Run verdictan --version, then verdictan doctor.

    verdictan --version
    verdictan doctor
  3. 3

    Create a starter configuration

    verdictan init writes policy-config.yaml. Review it before you route traffic.

    verdictan init
  4. 4

    Test and deploy the policy

    Lint and test the policy, then deploy it to the local-evaluation agent in Configurations.

    verdictan policy lint --file policy-config.yaml
    verdictan policy test --json
    Open Configurations in Console
  5. 5

    Start the gateway

    Export the gateway token and upstream settings, then start.

    # VERDICTAN_API_TOKEN holds this gateway's gateway token.
    export VERDICTAN_API_TOKEN="vdt_your_gateway_token"
    export VERDICTAN_UPSTREAM_URL="https://api.openai.com"
    export VERDICTAN_UPSTREAM_API_KEY="sk-..."
    verdictan gateway run --listen 0.0.0.0:41002 --agent local-evaluation