Skip to main content

OrbiAds CLI

Google Ad Manager from the command line. Deploy campaigns, check inventory, run reports — without opening a browser.


Version Status

  • PyPI stable: orbiads-cli 1.0.1
  • Source tree: orbiads-cli 1.1.0 (unreleased)

1.1.0 is a real CLI change, not just a version bump: the source tree still ships a default Firebase Web API key (DEFAULT_FIREBASE_API_KEY in config.py) for refresh-token exchange out of the box, while also accepting an override via ORBIADS_FIREBASE_KEY. The key is a Firebase Web API key — a public client-side credential by design, already served in the browser bundle. It is protected by HTTP referrer restrictions on the GCP side (only orbiads.com/* and localhost are allowed). Do not publish 1.1.0 to PyPI until the CLI release gate is green.


Install (30 seconds)

# Option 1 — pipx (recommended, auto-handles PATH)
pipx install orbiads-cli

# Option 2 — pip
pip install orbiads-cli

# Option 3 — from this repo
./install.sh cli

Verify:

orbiads --version
# PyPI install: orbiads 1.0.1
# Local source install: orbiads 1.1.0

command not found? See Troubleshooting below.


Authenticate (one time)

orbiads auth login

A code and URL are displayed. Open the URL, enter the code, authorize with Google. Done.

orbiads auth status
# Authenticated as user@gmail.com (network: 12345678)

Quick Start

# See your GAM network
orbiads network info

# List campaigns
orbiads campaigns list

# Get JSON output (for scripts)
orbiads campaigns list --json

# Run a delivery report
orbiads reporting run --template 12345 --json

# Check inventory before trafficking
orbiads inventory ad-units

# Check credit balance
orbiads billing balance

All Commands

Group Commands Description
auth login, logout, status Google OAuth Device Flow
network info, list, switch GAM network context
campaigns list, get, deploy, pause, archive Campaign management
orders list, get, create Order management
creatives list, get, upload Creative management
advertisers list, get, create Advertiser management
inventory ad-units, placements, targeting-keys Inventory browsing
reporting run, templates Reports and exports
billing balance, usage Credit balance and history
config list, set, get CLI configuration

Global Flags

Flag Description
--json Raw JSON output (for piping to jq, scripts)
--output table|json|csv Output format
--yes, -y Skip confirmation prompts
--version Show CLI version

CLI + MCP + Skills — How They Work Together

OrbiAds has 3 integration layers that complement each other:

┌─────────────────────────────────────────────────┐
│  Skills (8 guided workflows)                    │
│  /orbiads:bootstrap  /orbiads:qa-preview  ...   │
│  → Load in Claude Code, ChatGPT, Gemini         │
├─────────────────────────────────────────────────┤
│  MCP Server (168 tools)                         │
│  https://orbiads.com/mcp                        │
│  → AI agents call tools via MCP protocol        │
├─────────────────────────────────────────────────┤
│  CLI (10 command groups)                        │
│  orbiads campaigns list --json                  │
│  → Terminal, scripts, CI/CD, automation          │
└─────────────────────────────────────────────────┘
         ↓           ↓           ↓
      Same API · Same credits · Same guardrails
Use case Best tool
Explore GAM interactively with AI MCP (via Claude/ChatGPT)
Guided campaign deployment Skills (/orbiads:deploy-reporting)
Scripted automation, CI/CD CLI (orbiads deploy --json)
Quick checks from terminal CLI (orbiads network info)
Complex multi-step workflows Skills + MCP combined

Use CLI inside Claude Code

Claude Code can call the CLI directly:

> Run `orbiads campaigns list --json` and summarize the active campaigns

Or use it as a data source for Skills:

> /orbiads:qa-preview
> Use `orbiads reporting run --template 789` to check delivery

Configuration

Settings are stored in ~/.orbiads/config.json:

orbiads config set output json       # default output format
orbiads config set network_id 12345  # default GAM network
orbiads config list                  # show all settings

For source builds at 1.1.0 and later, token refresh also requires:

export ORBIADS_FIREBASE_KEY="<firebase-web-api-key>"

Windows PowerShell:

$env:ORBIADS_FIREBASE_KEY="<firebase-web-api-key>"

Troubleshooting

command not found: orbiads

The Python scripts directory is not in your PATH.

Quick fix (any OS):

python -m orbiads_cli --version

Permanent fix — use pipx (recommended):

pip install pipx
pipx ensurepath   # adds ~/.local/bin to PATH automatically
pipx install orbiads-cli
# restart your terminal

Manual fix by OS:

OS Command
macOS echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
Linux echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
Windows In PowerShell (admin): [Environment]::SetEnvironmentVariable('PATH', $env:PATH + ';' + (python -c "import sysconfig; print(sysconfig.get_path('scripts'))"), 'User')

Authentication failed

orbiads auth logout
orbiads auth login   # re-authenticate

Network not found

orbiads network list              # see available networks
orbiads config set network_id ID  # set the correct one

PyPI Release Policy

Publish a new orbiads-cli package only when the CLI package itself changes: CLI source code, commands, local auth/config behavior, runtime or dev dependencies, packaging metadata, or documentation rendered on PyPI.

Do not publish PyPI for backend-only, hosted MCP-only, or remote server behavior changes that remain compatible with the existing CLI client.

Before publishing:

  1. Verify the latest PyPI version.
  2. Ensure pyproject.toml, src/orbiads_cli/__init__.py, and this README agree.
  3. Run the CLI tests: uv run pytest -q.
  4. Build the package: uv build.
  5. Check the distributions: twine check dist/*.
  6. Upload, then verify from a clean environment with pip install orbiads-cli==<version>.

If the source version is ahead of PyPI but the release gate is not green, keep the source version marked as unreleased instead of publishing or pretending the version exists on PyPI.

Current release gate for 1.1.0: not green. On 2026-06-10, uv run pytest -q passes collection after adding PyYAML to the dev extra, but the suite still fails on public CLI catalogue drift and MCP parity drift (server_info unmapped). PyPI therefore remains at 1.0.1.


Metadata

Release files for orbiads-cli 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orbiads-cli 1.3.0
File Size Uploaded Provenance Actions
orbiads_cli-1.3.0.tar.gz 189.2 kB Without provenance Details for orbiads_cli-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for orbiads-cli 1.3.0
File Interpreter ABI Platform Actions
orbiads_cli-1.3.0-py3-none-any.whl Python 3 none any Details for orbiads_cli-1.3.0-py3-none-any.whl

Total release size: 287.1 kB

Release files / orbiads_cli-1.3.0.tar.gz

Download URL orbiads_cli-1.3.0.tar.gz
Size 189.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ab178f9c7a7a22045c36fc0db359d079b30efa6cb5991d2dd24d0dc917cf348e
BLAKE2b-256 checksum
How to use checksums
bf269e66b73a993195c20a1e2c353f535b7e46145dceee8591ea43e07c9cb57e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / orbiads_cli-1.3.0-py3-none-any.whl

Download URL orbiads_cli-1.3.0-py3-none-any.whl
Size 97.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8f9d2fec23f164b8bda99be39e95ceb519dc77ae1f6783338671efdb3a259c8
BLAKE2b-256 checksum
How to use checksums
15bb36c38417b4b6766ae25a1ee892bdd9ef4732a2c2e79bed21e4ec8bac93f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for orbiads-cli 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page