r/NOFireAI_ • • 5d ago

Give the agent gh CLI, not your GitHub account

https://www.nofire.ai/blog/give-the-agent-gh-not-your-github-account

This post covers how gh CLI reaches the broker, a real demo with r/herdr, why path rules cannot limit GraphQL, what the policy checks, and how to set it up.

TL;DR
A coding agent that needs gh usually gets a GitHub token, and with it everything the token can do. Brig's new github-api route serves gh from the credential broker on the host, so the token never enters the sandbox, and a GraphQL policy decides which queries and mutations reach GitHub.

1 Upvotes

0 comments sorted by