What this is for
The Guardway connector for Claude lets Owners and Admins manage the organization’s gateway API keys by asking Claude: find keys, create one with the right restrictions, tighten or loosen what a key can reach, rotate it or revoke it. Owners and Admins can also change the organization’s policies and guardrail rules (block a model for an application, add banned keywords, turn on PII redaction), switch MCP tools on and off, invite and remove members, act on anomalies and alert rules, and add providers and MCP servers. Anyone in the organization can also ask Claude about usage and spend, guardrail and MCP activity, the audit log, members, anomalies, gateway health and what policy an application actually gets, and about AI use across the company: who uses which AI tools on which machines, and which repositories and cloud agents use AI. Claude sees metadata about people’s AI use, never what they typed. It works in claude.ai, Claude Desktop and Claude Code, and it is available to every Guardway organization. Claude acts as you, with your current role in each organization. Read Only members can connect too, but can only look. The connector server URL is:Options
What Claude can do
Reading usage, the audit log and policies
- Usage lags by about an hour. Usage and spend come from hourly rollups, so the most recent hour may be missing. Claude says how far behind real time the figures are.
- Rows don’t always add up. Grouped by key, user or team, traffic that isn’t attributed to one shows up in the totals only. MCP traffic has no model and shows as “MCP traffic (no model)”.
Changing policies and guardrail rules
Owners and Admins can change the organization’s policies and guardrail rules by asking Claude. A policy applies to all traffic in the organization (the baseline) or to one application (an override), and sets which models, providers and MCP servers and tools are allowed or denied, plus Safety SLM, prompt injection, rate limits, budget and detection. A guardrail rule inspects traffic: banned keywords and patterns, PII, content filter, prompt injection, topics. See Security for what each one does.- “Block GPT-4o for the support app”
- “Add ‘project falcon’ to the banned keywords rule”
- “Turn on PII redaction for responses”
- “Allow the GitHub MCP server’s read tools for the checkout app”
Claude asks before weakening protection
A change that adds protection is applied at once: denying a model, adding banned keywords, turning a rule on, switching a rule from warn to block. A change that weakens protection is never applied directly. Claude judges a policy change by its effect on the effective policy: what traffic gets once the organization baseline and the application’s policy are combined, on every gateway the change reaches. If protection gets weaker anywhere, Claude asks first. Claude first shows you a preview, and nothing changes until you approve it in the conversation. Weakening changes include:- turning a policy, a section or a guardrail rule off;
- allowing every MCP server (an empty allow list means everything is allowed), or allowing more MCP tools;
- moving a rule’s action from block to warn, or to a weaker action;
- removing a denied model, server or tool, or removing keywords, patterns or categories from a rule;
- clearing a policy section;
- raising a rate limit, budget or threshold, adding exceptions, or narrowing what a rule applies to.
- the policy or rule and the scope it affects — for example, “all traffic in the organization” for the baseline, or one application;
- a one-line explanation of each thing that gets weaker;
- the full change, before and after;
- when the change takes effect.
No deletes from chat
Claude can’t delete a policy or a guardrail rule. If you ask it to, it offers to turn it off instead, which is a weakening change and so needs your approval. Deleting is done in the dashboard.Good to know
- Changes aren’t instant. Gateways pick a change up on their next config refresh, usually within a minute.
- Owners and Admins only. Read Only members can read policies but not change them. A Claude Code token also needs Read and change policies & guardrail rules access (see Token scopes).
- Credentials stay out of the chat. The endpoint URLs and credentials of a guardrail rule that uses an SLM classifier are never shown or changed through Claude.
- Applications are still added and edited in the dashboard. Providers and MCP servers have their own tools: see Connections.
Team
Anyone in the organization can ask who’s in it. Owners and Admins can also invite people, change roles and remove members, as on Users.- “Who in our org is an Admin?”
- “Which invitations are still pending?”
- “Invite dana@example.com as Read Only”
- “Make Bob read-only”
- “Remove alice@example.com from the org”
Good to know
- What the previews show. An invite names the email, the role and what that role can do, the organization, and that an invitation email will be sent. A removal says what happens to the person’s access: the API tokens they created are revoked, and their access on your gateways drops to read-only. Gateway API keys they own are not revoked; revoke or reassign them separately.
- Only addresses you typed. Claude invites only an email address you give it in the conversation, never one it read in a tool result, such as an audit log entry or a policy name.
- Someone who already joined. An invitation can be revoked or re-sent only while it is pending. Once the person has joined, Claude says so and offers to remove them as a member instead, which asks you first.
- What only the Owner can do. Promoting a member to Admin, and inviting someone as Admin through Claude, need the Owner; an Admin’s request is refused before any preview. Nobody can change or remove the Owner, or change or remove themselves, from Claude.
- Password resets stay in the dashboard. Claude can’t send a password reset or transfer ownership.
Operations
Anyone in the organization can ask about anomalies, alert rules and gateway health. Owners and Admins can also act on anomalies and manage alert rules. An anomaly is raised when an API key’s behavior on a gateway drifts from what the gateway learned is normal for it, which is often the first sign of a stolen or misused key (see the Anomalies tab of Security). Alert rules are the ones in Notifications.- “Any open high-severity anomalies this week?”
- “What’s going on with the anomaly on the checkout-service key?”
- “Acknowledge that anomaly, we’re looking into it”
- “Alert the #security Slack channel when requests get blocked”
- “Which gateways are out of date?”
Good to know
- Rebaselining asks first. Rebaselining declares the key’s new behavior normal, which would hide a stolen key. The preview says so and suggests rotating the key instead. If you ask Claude to deal with a key that’s “acting weird”, it offers to rotate it, not to rebaseline.
- Alerting less asks first. For an alert rule, these changes ask you to approve a preview: turning it off, changing its condition, raising its threshold, lowering its severity, lengthening its cooldown, or removing or moving a destination. Adding a rule, turning one on and the opposite changes are applied at once.
- Destinations. A new alert rule notifies a webhook or a Slack channel that an existing rule already uses, or one you pick in the dashboard. Claude doesn’t create webhooks, and PagerDuty, Opsgenie and Microsoft Teams channels are shown by type only and set up in the dashboard: they hold credentials.
- Alert rules aren’t deleted from chat. Claude offers to turn a rule off instead, which asks first.
Effective policy and MCP tools
An application’s traffic is governed by the organization baseline plus that application’s own policy, and a policy can be pinned to one gateway. Claude can show what an application actually gets once these are combined, and which policy set each setting. Owners and Admins can also switch discovered MCP tools on and off.- “What policy does the support app actually get?”
- “Why is GPT-4o blocked for checkout?”
- “Which tools on the jira server are switched off?”
- “Turn off delete_repository on the github MCP server”
get_effective_policy, list_mcp_servers and get_guardrails_config are read-only and open to every role. Switching a tool off for everyone is different from denying it in a policy: to allow or deny a tool for one application, ask Claude to change that application’s policy (see Changing policies and guardrail rules). Guardrail settings themselves are still changed in the dashboard.
Connections: providers and MCP servers
Anyone in the organization can list providers and MCP servers. Owners and Admins can also add and change them. Credentials are never typed in the chat: Claude gives you a one-time link to enter them in Guardway (see Secrets never go through Claude).- “Add an Anthropic provider on the prod gateway with claude-sonnet”
- “Rotate the OpenAI key”
- “Disable gpt-4o on the azure provider”
- “Register our docs MCP server at https://mcp.example.com/mcp”
- “Which tools does the jira server have?”
Good to know
- A new provider waits for its key. It shows as Waiting for credentials in the dashboard and isn’t sent to your gateways until the key is saved through the link. Claude tells you which host the key will be sent to, so you can check it before you type the key.
- A new MCP server starts switched off. Turning it on asks you first. A server that signs in with OAuth gets a link to the dashboard to sign in, as described in Sign in to a server (OAuth).
- Widening access asks first. Turning a provider back on, adding models to it, changing its endpoint URL (which redirects every request and its stored key), turning an MCP server on, and changing an MCP server’s URL, command or arguments all ask you to approve a preview first. Turning things off and removing models are applied at once. Claude won’t remove a provider’s last model: turn the provider off instead.
- AWS Bedrock. The access key ID is an identifier, not a secret, so you can give it to Claude. The secret access key (and a session token, for temporary credentials) goes through the link.
- No deletes from chat. Claude can’t delete a provider or an MCP server. It offers to turn it off instead. Deleting is done in the dashboard.
- Changes aren’t instant. Gateways pick up provider and MCP server changes, and MCP tool switches, on their next config refresh, usually within a minute.
Endpoints and people
Anyone in the organization can ask about AI use on the company’s laptops and workstations: the machines that report to Guardway through the Guardway CLI, the people who use them, the AI tools and accounts they use, and their AI coding sessions. These tools are read-only, and they return metadata only: Claude never sees prompt or response text (see What Claude sees about people’s AI use).- “Who in the company uses AI tools with personal accounts?”
- “Which machines haven’t reported in a week?”
- “What AI tools does Dana use, and how much did she spend through the gateway this month?”
- “Show Bob’s Claude Code sessions this week”
- “Give me a shadow AI report”
Good to know
- Never prompt or response text. Asked “what did Bob ask Claude?”, Claude answers with the session’s metadata (when, which tool, how many prompts, models, tools called) and says the text is only in the dashboard People view, for Owners and Admins. It doesn’t guess what was asked from tool names or counts.
- AI accounts by domain. A signed-in AI account shows its tool, whether it’s corporate or personal, its plan and its email domain (for example gmail.com), never the address.
- No IP addresses. Machines are shown by hostname and OS username. IP addresses are never shown.
- Names come from the machines. Usernames, hostnames and AI tool names are reported by each machine. Claude treats them as data and quotes them; it doesn’t follow instructions written in them.
- Organization-wide spend by user, key or team stays with
get_usage_report(see Reading usage, the audit log and policies).
Discovery and AI inventory
Anyone in the organization can ask what AI is in your code and your cloud accounts: the repositories of your connected GitHub organizations that use AI (see Repositories), and the Azure AI Foundry and Amazon Bedrock agents found in your cloud accounts with their OWASP Agentic Top 10 findings (see Agents). Owners and Admins can also refresh the cloud agent inventory.- “What AI do we have?”
- “Which repos use OpenAI?”
- “Show the AI bill of materials for acme/api”
- “What AI agents run in our cloud, and which bypass the gateway?”
- “What are our critical agent findings?”
- “Refresh our Azure agents”
Good to know
- System prompts are never shown. Claude sees whether a cloud agent has instructions and how long they are, never their text.
- Refreshing runs once, with a cooldown.
refresh_cloud_agentsis applied directly, without a preview: it only adds visibility. It calls your cloud providers’ APIs with the credentials stored in Guardway. Each connection refreshes one at a time and then has a cooldown of about 15 minutes. If a refresh is already running, or the connection refreshed recently, Claude says so and when you can refresh again, instead of retrying. Refreshing needs the Owner or Admin role. - Repositories are read-only from Claude. Claude can’t scan or re-scan a repository. Asked to, it points you to the Scan button on the repository in the dashboard (see Repositories).
- Credentials stay hidden. A discovery connection shows its provider, account name, status and last sync, never its credentials or configuration.
- Names come from your code and cloud. Repository names, file paths, agent and tool names and finding text can be written by anyone who can push to a repository or create an agent. Claude treats them as data and doesn’t follow instructions written in them.
Example prompts
- “Which API keys can use every model and have no budget?”
- “Create a key for the support bot limited to claude-sonnet with a $50 monthly budget that expires in 90 days.”
- “Only let the
checkout-servicekey callsearch_codeandlist_pull_requestson the github MCP server.” - “Who owns the keys that haven’t been used in the last 30 days?”
- “Rotate the checkout-service key.”
- “Revoke all expired keys owned by alice@example.com.”
- “Who spent the most this week?”
- “Cost by model for the last 30 days.”
- “What changed in our org yesterday?”
- “Is PII redaction on?”
- “Which guardrails fired most?”
How to configure
- claude.ai and Claude Desktop
- Claude Code
Add a custom connector
https://mcp.guardway.ai/mcp.Enter the OAuth client ID
Connect and sign in
Review and approve
Permissions
- Your role, checked on every call. Owners and Admins can create, change, rotate and revoke keys. Read Only members can only list and inspect them. A role change applies on the next call.
- Reading usage, the audit log, policies, members, anomalies, alert rules, gateway health, providers and MCP servers, endpoints and people, and the AI inventory is open to every role, Read Only included.
- Changing policies and guardrail rules, switching MCP tools, managing members, acting on anomalies and alert rules, adding or changing providers and MCP servers, and refreshing cloud agents need the Owner or Admin role. Read Only members can read all of these but change none of them. Deleting is done in the dashboard only.
- Some team changes need the Owner. Promoting a member to Admin, and inviting someone as Admin through Claude, are refused for Admins. Nobody can change or remove the Owner, or themselves, from Claude.
- Claude Code tokens are also limited by their scopes: a Read API keys token can’t change anything, whatever your role, and a token without Usage & spend (read) can’t read usage.
- Several organizations. If you belong to more than one, Claude asks which organization to work in. Tell it by name.
Token scopes for Claude Code
Each tool needs a scope on the token. Usage & spend and Audit log are independent: pick either, both or neither. Policies, Members, Operations (alerts & anomalies), Connections (providers & MCP servers), Endpoints & people and Discovery are one level each, chosen like API key access; read and change (or read and refresh) always includes read. Endpoints & people has no change level.whoami works with any token, and lists what the token can do in each area. A token with Read providers & MCP servers but not Read policies & posture sees MCP servers, and the tools it discovers, without tool names. Password resets are never open to a token, and no token can scan a repository. When Claude checks your organization’s setup, it sees how many machines are enrolled and reporting, as counts only: who uses them and their hostnames need Read endpoints & people, and IP addresses are never shown.
claude.ai and Claude Desktop have no token scopes: they can use every tool, and what they can do follows your role. A Read Only member can only read, and the Owner-only team changes above still need the Owner.
How your keys stay safe
- Key secrets never appear in the chat. When Claude creates or rotates a key, you get a one-time link instead. Open it in your browser while signed in to Guardway to see the key. The link works once, only for you, and for 10 minutes.
- Destructive changes need your approval. Rotating a key, revoking a key, and any change that removes a restriction (for example, removing a budget or an expiry, or letting a key use every model) always show you a preview first: the key’s name, owner, expiry, last use and what will happen. Nothing changes until you approve in the conversation. A preview expires after 5 minutes, and it is refused if someone changes the key in the meantime.
- No gateway-admin access. The connector can’t give a key gateway-admin access, and can’t rotate or edit a key that already has it. Do that in the dashboard.
- Weakening protection or granting access needs your approval too. Claude shows a preview and waits for you before it weakens a policy or guardrail rule, switches MCP tools on, invites, promotes or removes a member, rebaselines an anomaly, makes an alert rule alert less, or turns on or widens a provider or an MCP server. See Claude asks before weakening protection.
- Every change is audited. Each key create, edit, rotate and revoke, and each change Claude makes to policies, rules, MCP tools, members, alert rules, providers and MCP servers, is recorded in the Audit Log under your name, noting that it came through the connector.
Secrets never go through Claude
Provider keys and MCP server credentials go into Guardway through a one-time link, never through the chat. When Claude adds a provider or an MCP server, or you ask it to replace a credential, it creates a link and gives it to you:Open the link
/secrets/input/ in the dashboard that reads Claude asked you to enter the fields it needs, for the provider or MCP server by name. Opening the page doesn’t use the link up.Type the values and save
Return to Claude
- One use, 10 minutes, only you. A link saves values once and expires 10 minutes after Claude creates it. Only the member who asked Claude for it can open it; for anyone else, or in another organization, it reads Link not found.
- An expired or used link reads This link has expired or This link was already used. Ask Claude for a new link.
- Claude refuses a secret pasted in the chat. If you paste a key into the chat, Claude won’t pass it to Guardway: a request carrying anything that looks like a key, token, password or private key is refused before anything is sent, without repeating the value, and Claude offers a link instead. The value is still in your chat history, so rotate it with the provider or MCP server, then enter the new one through a link.
- Credentials stay hidden on the way out too. Providers and MCP servers are shown with credentials masked or as “stored”, never as values.
What Claude sees about people’s AI use
- What Claude sees: who uses which AI tools on which machines, whether their AI accounts are corporate or personal (by email domain), risk, counts of sensitive data found in prompts (secrets, PII, source code), and session timelines: when, which tool, which models, token counts and the names of the tools an AI session called.
- What Claude never sees: prompt or response text, what a subagent was asked to do, the email address of a signed-in AI account, IP addresses, or the system prompt of a cloud agent.
- Where the text is. Owners and Admins can read prompt text in the dashboard People view. Ask Claude about a person and it points you there when you need the words, not just the metadata.
- Who can ask. Every role can read this metadata through Claude, Read Only included. A Claude Code token needs Read endpoints & people.
Disconnect
- claude.ai and Claude Desktop: in Guardway, open Settings → Account → Connected apps and choose Disconnect next to Claude. Access stops immediately. You can also remove the connector in Claude.
- Claude Code: revoke the token in Settings → API tokens, or run
claude mcp remove guardway. Tokens also stop working when they expire, after at most 30 days.
Troubleshooting
"This Guardway account isn't a member of any organization"
"This Guardway account isn't a member of any organization"
Claude keeps asking me to sign in or reconnect
Claude keeps asking me to sign in or reconnect
Claude says I'm not allowed to change a key
Claude says I'm not allowed to change a key
Claude says my token is missing a scope
Claude says my token is missing a scope
Claude says it can't read endpoints, people or the AI inventory
Claude says it can't read endpoints, people or the AI inventory
Claude says the route isn't open to this connection yet
Claude says the route isn't open to this connection yet
Claude says the cloud agents were refreshed recently, or a refresh is already running
Claude says the cloud agents were refreshed recently, or a refresh is already running
Claude won't scan a repository
Claude won't scan a repository
Claude won't tell me what someone asked an AI tool
Claude won't tell me what someone asked an AI tool
Claude asks me to confirm
Claude asks me to confirm
Claude says the policy, rule or setting was changed by someone else
Claude says the policy, rule or setting was changed by someone else
Claude says a policy already exists for that scope
Claude says a policy already exists for that scope
The cost looks too low
The cost looks too low
The reveal link says it expired or was already viewed
The reveal link says it expired or was already viewed
The link to enter a credential says it expired, was used or wasn't found
The link to enter a credential says it expired, was used or wasn't found
Claude refused my request because it contained a secret
Claude refused my request because it contained a secret
Claude says only the Owner can do this
Claude says only the Owner can do this
Claude can't revoke an invitation because the person already joined
Claude can't revoke an invitation because the person already joined
A provider says Waiting for credentials
A provider says Waiting for credentials
Claude asks which organization to use
Claude asks which organization to use
Related
- API Keys — every key setting the connector can change.
- MCP — MCP servers and per-key tool rules.
- Roles — what Owner, Admin and Read Only can do.
- Security — guardrails and what each guardrail type does.
- Audit Log — the record of every change.
- Users — members, roles and invitations.
- Notifications — alert rules and webhooks.
- Providers — every provider setting.
- Guardway CLI — how machines report their AI tools and accounts.
- Repositories and Agents — the AI inventory in the dashboard.
- Usage and Spend — the same figures in the dashboard.
- Pricing — the prices the gateway uses to compute cost.