Skip to content

About

Scoped, audited access to service APIs for AI agents, with centralized policy enforcement and credential management.

Resources

Contributing

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

1,074 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Access Broker

Agent Access Broker gives AI agents scoped, audited access to service APIs while keeping upstream execution credentials inside the broker. It supports both interactive work with an agent and automated workflows. Administrators choose who can use each action, which resources within a service it can affect, which execution contexts may use it, and whether it runs as the user or a shared service identity.

Teams that run agent platforms can manage agent-specific policy across services in one place. Upstream account permissions and token scopes continue to apply; the broker adds restrictions, audit logging, rate limiting, and attribution.

The broker works best with organization-managed execution environments or network egress controls that limit direct access to upstream services. Its trusted-caller integration can receive verified execution context and user identity from that infrastructure. An execution context, such as an internal workspace or external automation environment, helps determine permitted actions and resources.

Supported integrations

Native integrations pair action permissions with the following resource controls:

Integration Supported operations Resource controls
Jira Project discovery, issues, search, comments, and attachments Projects
Confluence Live space listing, pages, blogs, drafts, comments, and attachments Spaces, exact pages/blogs, and page/folder subtrees
GitLab REST Repository discovery, content search, issues, merge requests, CI, uploads, and webhooks Repositories and namespaces
CloudBees CI Live job listing, builds, Pipelines, logs, artifacts, queues, and triggers Jobs, folders, and controllers
Teams Workflows Notifications Configured Workflow destinations
Git HTTP gateway Git fetch and push Repositories and namespaces
Gmail Mail reads and management through Google OAuth Actions within the connected user's mailbox; no resource filters

Administrators can also import MCP HTTP servers, OpenAPI and Swagger definitions, and approved local commands as reviewed actions. MCP and OpenAPI imports authorize actions without resource or query containment; command imports can declare resource types. HTTP gateways let native clients use approved upstream operations through the broker.

Access model

Agents connect through the agent-access CLI, HTTP API, local stdio MCP, or HTTP MCP. Git clients use the Git smart HTTP gateway. These interfaces and the administration portal share one permission model.

flowchart LR
    Users[Administrators and users] --> Portal[Management portal]
    Agents[Agents: CLI / HTTP / MCP] --> Broker[Broker]
    Portal --> Broker
    Git[Git clients] --> Gateway[Git gateway]
    Gateway --> Broker
    Broker --> Checks[Identity + contexts + grants + token restrictions]
    Checks --> Providers[Configured upstream services]
    Broker --> Store[(Managed state)]
    Broker --> Audit[(Redacted audit)]
Loading

A principal identifies a person or workload. Grants select the services, actions, resources, execution contexts, and credential modes that principal can use. Resource groups combine reusable selections and exclusions. Agent tokens can narrow that access further. A stored credential provides upstream authentication; storing it does not grant permission to use it.

Before executing an action, the broker checks current grants and resource selections and applies the authorized credential mode. Agents discover their available actions and resources. Administrative roles and personal self-service are managed separately from permission to invoke service actions.

The broker can also vouch for people to another service. An administrator lets accounts hold access keys of configured types; a service that receives one asks the broker whose it is and applies its own rules. The broker never accepts an access key as a credential. See usernames and access keys.

The broker governs requests sent through it. Network controls establish whether agents can reach upstream services directly. Revocation blocks new admissions; operations already prepared may finish. See the security model, resource policy, account roles, and trusted ingress for the detailed boundaries.

Management portal

Administrators manage accounts, resources, grants, credentials, and imported services. Users review their access and manage their own credentials and agent tokens. Auditors investigate recorded activity. Sign-in supports local accounts or optional Microsoft Entra ID, with group mappings and account enrollment.

Service grants in the light-mode administration portal Audit record details with outcome, identity, and request correlation Agent token action restrictions in the dark-mode self-service portal
Grants Audit details Agent token restrictions

Start here

Your task Read
Try the broker locally Local quickstart or interactive portal demo
Install and operate a deployment Operator guide
Set up accounts and grant access Administrator guide
Connect an agent End-user guide
Learn the portal workflows Portal walkthroughs

Local quickstart

This loopback-only evaluation uses the offline fake provider. It does not require Jira, Confluence, or another live service. Install Rust through rustup; the checked-in toolchain file selects the tested Rust/Cargo 1.99.1 toolchain. The commands below build locally. A configured build service is optional.

cargo build --locked
cargo run --locked -p agent-access-broker -- \
  --config tests/fixtures/fake-broker.toml config validate
cargo run --locked -p agent-access -- \
  --config agent-access.sample.toml config validate

In one terminal, start the broker:

export FAKE_SERVICE_TOKEN=dev-only-token
cargo run --locked -p agent-access-broker -- \
  --config tests/fixtures/fake-broker.toml serve --listen 127.0.0.1:8787

In another terminal, check readiness and invoke one action over HTTP. This fixture permits anonymous HTTP calls; CLI invocation requires an authenticated identity for runtime catalog discovery.

curl -fsS http://127.0.0.1:8787/v1/readyz
curl -fsS http://127.0.0.1:8787/v1/invoke/fake/echo \
  -H 'Content-Type: application/json' \
  -H 'X-Agent-Access-Request-Id: local-quickstart' \
  --data '{"inputs":{"project":"TEST","message":"hello"}}'

An allowed response has decision = "allow" and echoes hello in result. Every response carries request IDs for log/audit correlation. Stop the broker with Ctrl+C. The fixture writes development audit state under target/fake-broker-audit.

For an interactive managed administration walkthrough, see the local portal demo. Its setup script creates disposable state and leaves a background broker running; follow its stop/reset instructions.

Build the portal

The tested portal toolchain is Node.js 24.18.0 and npm 11.16.0. Build the web assets separately from the Rust binaries:

npm --prefix apps/portal ci
npm --prefix apps/portal run build

Configure [portal].static_dir with the absolute path to the generated apps/portal/dist directory. Deploy the portal and broker from the same source revision. See the portal build instructions for supported Node.js versions and the demo instructions for local setup on Linux and macOS.

Operate and upgrade

Start with the production sample and follow the operator guide to configure HTTPS, identity, protected state directories, encryption keys, and administrator access. The sample grants no provider access; administrators add integrations and grants explicitly. Local demos and the general samples are development configurations.

Run one broker per managed-store, audit, and upload-spool state set. Back up both the managed and audit stores together with the keys needed to restore them. Deploy matching broker, CLI, and portal versions, and follow the upgrade and rollback procedure and changelog when changing a deployment.

Documentation reference

Reference Contents
Configuration Broker and client settings, defaults, and validation
CLI Commands, discovery, input/output, and exit codes
HTTP API Routes, responses, and management API
MCP Local and HTTP connections, discovery, transfers, and sessions
Architecture Components, crate layout, and request lifecycle
Provider SDK Writing native integrations
Downstream assembly Building a custom Broker distribution
Database Storage, encryption, migrations, and keys
Providers Provider capabilities and individual contracts
OAuth Delegated connections to upstream services
Applications Client applications that obtain agent tokens with user approval
Access keys Keys for a resolving service: usernames, key types, and the resolution route
Testing Offline suites and optional live-provider checks
Release readiness Qualification, packaging, and deployment acceptance

Agent-facing instructions under skills/ cover typed CLI, canonical invoke, JSON send, HTTP, and MCP.

Contributing

Focused bug reports and fixes are welcome through issues and pull requests. Use issues for focused feature requests and GitHub Discussions for larger ideas or proposals whose fit needs discussion. See CONTRIBUTING.md for reporting, proposal, and pull-request guidance, and AGENTS.md for development checks.

Project status

Agent Access Broker is serving users in real-world deployments but is still in early development. APIs, configuration, and operational workflows may evolve as the project matures.

About

Scoped, audited access to service APIs for AI agents, with centralized policy enforcement and credential management.

Resources

Contributing

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages