Getting Started
Install with macaw-ai, join a workspace, and make your first checked call
20 questions
You don't need to sign up first. Run the installer:
npm install -g macaw-ai && macaw-ai installWhen it asks which workspace to use, choose Create a new workspace. It prints a sign-in link; open it and sign in with Google or GitHub (your own identity provider on Enterprise). Approving the link creates the workspace, and you become its admin.
Signing in at
https://console.macawsecurity.aiwith Google or GitHub still works too: your first sign-in creates your account and a workspace.A workspace is an isolated tenant environment in MACAW. Each workspace has full multi-user, multi-workload isolation—effectively its own control plane with separate policies, agents, logs, and settings.
Each workspace:
- Has a unique slug used for routing
- Has a tier:
developer(free) or paid plans - Contains members with roles (
adminormember) - Has its own API keys, policies, and audit logs
- Is fully isolated from other workspaces
Most teams start with a single workspace. Multiple workspaces are useful for separating environments (dev/staging/prod) or business units.
Feature Developer Enterprise Pricing Free Platform license plus per million policy checks Policy checks 100K / month At the volume you need Console Users 3 Unlimited Agents Unlimited Unlimited Log Retention 7 days, then best effort 90+ days, configurable Support Docs and community Dedicated, with an SLA All IdP integrations (Okta, Azure AD, Auth0, Google, Keycloak) are available in all tiers.
Use the installer (Node 18 or later):
npm install -g macaw-ai && macaw-ai install --clientIt installs the Python client SDK, the SecureAI adapters and the examples into
./macaw, and writes your workspace key to.macaw/config.json. When it finishes it prints the lines to test the install.The original way still works:
- Sign in to
https://console.macawsecurity.aiand create a workspace - Open Dev Hub and choose Download MACAW Client SDK, then your platform and Python version. Each download includes a key for your workspace.
- Unzip it, set
MACAW_HOMEto that folder, and install the wheel with the adapters:pip install macaw_client-*.whl "./secureAI[all]" - Run the examples.
- Sign in to
The client SDK is built for:
- macOS (Apple silicon) — Python 3.12 and 3.14
- Linux (x64) — Python 3.12 and 3.14
- Windows (x64) — Python 3.14
Intel Macs and Linux on Arm are not supported yet. If you are choosing, use Python 3.14.
pip install "macaw-adapters[all]"Or install specific adapters:
pip install "macaw-adapters[openai]" pip install "macaw-adapters[claude]" pip install "macaw-adapters[langchain]" pip install "macaw-adapters[mcp]"The examples need these frameworks:
python3 -m pip install "macaw-adapters[openai,claude,langchain,mcp]"Note: You still need
macaw_client, whichmacaw-ai install --client(or the console download) installs.Package Type Purpose macaw_clientProprietary (compiled wheel) Core client library. Provides MACAWClient, agent registration, cryptographic signing, and RPC transport. Required. Installed bymacaw-ai install --clientor the console download.macaw-adaptersOpen Source (Apache 2.0) Drop-in replacements for OpenAI, Anthropic, LangChain, LiteLLM, Pydantic AI, MCP and an MCP proxy. Thin wrappers that call macaw_client.macaw-adapterscannot function withoutmacaw_clientinstalled.# Test imports from macaw_client import MACAWClient from macaw_adapters.openai import SecureOpenAI print("Installation OK")Or run the quick test from the folder the client installed into (the installer prints these lines):
cd macaw export MACAW_HOME="$PWD" python3 secureAI/test_harness_quick.py# Set your OpenAI API key export OPENAI_API_KEY=sk-... # Run a simple SecureOpenAI example python -c " from macaw_adapters.openai import SecureOpenAI client = SecureOpenAI(app_name='my-first-app') response = client.chat.completions.create( model='gpt-4o-mini', messages=[{'role': 'user', 'content': 'Hello!'}] ) print(response.choices[0].message.content) "For Anthropic:
export ANTHROPIC_API_KEY=sk-ant-... python -c " from macaw_adapters.anthropic import SecureAnthropic client = SecureAnthropic(app_name='my-first-app') response = client.messages.create( model='claude-sonnet-4-5', max_tokens=100, messages=[{'role': 'user', 'content': 'Hello!'}] ) print(response.content[0].text) "- MACAW API key: Written to
.macaw/config.jsonbymacaw-ai install(or included in the console download), so there is nothing to enter. You can also setMACAW_API_KEY. Keys start withmw_. - OpenAI API key: Required for OpenAI/LangChain-OpenAI examples (
OPENAI_API_KEY) - Anthropic API key: Required for Anthropic/LangChain-Anthropic examples (
ANTHROPIC_API_KEY)
MCP examples do not require LLM API keys.
- MACAW API key: Written to
Yes. You can use MCP (Model Context Protocol) features without any LLM API keys. MCP allows you to create secure tool servers that can be invoked by any MCP-compatible client.
The client looks for your key in this order (first match wins):
- The
MACAW_API_KEYenvironment variable $MACAW_HOME/.macaw/config.json(ifMACAW_HOMEis set).macaw/config.jsonin the install directory~/.macaw/config.json(your home directory)
- The
For OpenAI drop-in example:
- Imports succeed without errors
SecureOpenAI(app_name="my-app")connects to the MACAW Trust Control Planeclient.chat.completions.create(...)returns a response- Console Activity tab shows the invocation
Verify with the quick test:
cd macaw export MACAW_HOME="$PWD" python3 secureAI/test_harness_quick.pyYou'll get a connection error like "Connection refused" or "Failed to connect". Common causes:
- Missing or invalid API key - Check
MACAW_API_KEYor.macaw/config.json(see the lookup order above) - Network connectivity - Verify you can reach
api.macawsecurity.ai - Firewall blocking HTTPS - Ensure outbound port 443 is open
Test connectivity:
curl -I https://api.macawsecurity.ai/health- Missing or invalid API key - Check
Ask a workspace admin for an API key. Admins mint keys in the console under Settings → Workspace → API Keys. Then either pass it to the installer:
MACAW_API_KEY=mw_... macaw-ai installor run
macaw-ai installand choose Paste an API key when it asks which workspace to use. To start a new workspace instead of reusing a key already on the machine, add--activate.npm install -g macaw-ai && macaw-ai install --coding-agents --systemThis installs a sidecar and hooks for Claude Code and Codex.
--systemcovers every directory and runs as a service that starts at login;--localcovers only the current project. Every tool call stops at a hook and waits for a decision. Launch withsecCCorsecCodexto route model calls through MACAW too.When a policy needs an approval, the people it names approve in the MACAW tray app (macOS and Windows) or in the console. There is no tray app on Linux yet.
The MACAW plugin is separate. Observe needs no account: it records what your agent does to local logs through hooks and blocks nothing. Protect installs the sidecar and creates or reuses a workspace. It also includes the
maplskill for writing policies.Yes. Activate the virtual environment first, then run
macaw-ai install --client; the client installs into that environment instead of./macaw. If your Python isn't 3.12 or 3.14, the installer suggests creating a 3.14 virtual environment.From the Console, go to Settings tab and use the invitation system. When inviting, you can grant specific permissions:
can_write_policiescan_invite_userscan_download_logscan_use_assistantcan_manage_attestations
Roles are
adminormember.If a request is denied, check the Console Logs tab - you'll see the policy decision with the reason for denial. Common causes:
- No policy explicitly allows the operation (default deny)
- User's claims don't match the policy requirements
- Parameter constraints violated (e.g., model not in allowed list)
The logs show exactly which policy was evaluated and why it denied the request.
- Documentation: Check the Dev Hub in Console for guides and examples
- Community: Developer tier includes community support
- Enterprise: Dedicated support contact with SLA
For issues, contact
support@macawsecurity.com.