Open agent boundary
Claude Code runs behind the ACP adapter while Bex remains the workflow host.
GLM security scan
Route GLM through Claude Code while Bex Security keeps scan scope, workflow policy, evidence validation, and final artifacts under one consistent contract.
Open source · Apache 2.0 · Report-only by default
npm install --global @bex-co/bex-security
export ZAI_API_KEY="<your-zai-api-key>"
bex-security scan . --agent claude --provider zai --model glm-5.3GLM 5.3
Selected model
Claude Code
Agent runtime
Bex Security
Security orchestration
More than a prompt
The model helps execute the work. Bex Security owns the repeatable process that turns exploration into reviewable security evidence.
Define source boundaries and permissions before investigation begins.
Use GLM through Claude Code to investigate likely vulnerability paths.
Challenge candidate findings and reject claims that lack support.
Preserve reviewable findings, evidence, and coverage as local artifacts.
The Bex layer
Provider and model choice should not force a different definition of a complete, validated scan.
Claude Code runs behind the ACP adapter while Bex remains the workflow host.
Scope, permissions, schemas, workbench tools, and artifact rules stay consistent.
Z.AI configuration applies only to the Claude ACP subprocess; Bex does not store the API key.
Quick setup
Install Bex Security from npm, install Claude Code, provide a Z.AI API key, and select the Z.AI provider explicitly.
Install @bex-co/bex-security from npm and make sure the Claude Code binary is available on PATH.
Export ZAI_API_KEY in the current shell. Bex forwards it only to the Claude ACP subprocess and does not store it.
Pass --model glm-5.3 for explicit selection, then point the scan at the repository you want to inspect.
Yes. Bex starts Claude Code through its ACP adapter and applies the Z.AI provider configuration only to that subprocess while Bex owns scan scope and validation.
The Z.AI provider currently defaults to glm-5.3[1m]. Pass --model glm-5.3 when you want the explicit standard GLM 5.3 selection shown in this guide.
No. ZAI_API_KEY is passed to the current Claude ACP subprocess and is not written into Claude Code settings or Bex credential storage.
Star Bex Security if you want portable security workflows that can follow the agent and model best suited to each repository.
Star Bex SecurityOne workflow · Open agent layer · Validated evidence