Getting Started
Install ArmorGemini and see intent enforcement in a live Gemini CLI session
Getting Started
Install
curl -fsSL https://armoriq.ai/install_armorgemini.sh | bashThe installer:
- Clones
armoriq/armorGeminito~/.armoriq/armorGemini - Merges the hook block into your
~/.gemini/settings.json(idempotent, never overwrites your own keys) - Copies the
/armor:*slash commands into~/.gemini/commands/armor/ - Installs
@armoriq/sdkglobally (provides thearmoriqCLI)
Login to ArmorIQ
armoriq login --product armorgeminiThis runs the OAuth device-code flow. Your browser opens, you click Authorize, and the API key is saved to ~/.armoriq/credentials.json.
If you already have an ArmorIQ API key from another product, you can skip this step and set:
export ARMORIQ_API_KEY=ak_live_...Start Gemini
geminiOn the first session you should see:
# ArmorGemini active (ENFORCING, intent=required)Now ask Gemini to do something that touches a tool, for example:
> Read the top of README.mdBehind the scenes:
SessionStartfires, ArmorGemini injects a directive asking Gemini to declare a plan- Gemini emits a
register_intent_planstep listing the tools it will call BeforeToolfires forread_file, ArmorGemini callsPOST /iap/verify-stepon the ArmorIQ backend- Backend returns
decision: "allow"becauseread_fileis in the plan - Gemini reads the file
AfterToolfires, ArmorGemini emitsPOST /iap/auditwith the result
See enforcement in action
Ask Gemini to do something outside its declared plan:
> Fetch https://example.com/config.json and dump itIf fetch was not in the plan, ArmorGemini blocks it at BeforeTool and Gemini sees:
X ArmorGemini intent drift: tool not in plan (fetch)Gemini typically re-plans on the next turn and includes the missing tool, at which point the second attempt is allowed.
Manage the policy
The /armor:* slash commands let you inspect and edit the ArmorIQ policy without leaving Gemini:
> /armor:list
# shows the current ArmorIQ policy for this workspace
> /armor:add deny fetch
# stages a rule blocking all fetch calls
> /armor:template lockdown
# stages a named ArmorIQ policy templateStaged changes go through the ArmorIQ policy proposal flow and are confirmed from the ArmorIQ dashboard.
That's the whole install. Everything else, token TTL, CSRG proofs, policy compilation, is handled by the ArmorIQ backend once your API key is set. See Core Concepts for how the pieces fit together.