b-code-cli-darwin-arm64
v1.17.11
Published
B Code terminal CLI for QDeep AI Gateway native binary
Readme
B Code
B Code is the QDeep-managed terminal coding assistant. It uses your QDeep AI Gateway for model discovery, routing, logging, metering, and quotas.
Install
npm install -g b-code-cli
b-codeGateway Configuration
B Code reads QDeep runtime values from environment variables or from a .env.qdeep.local file in the current directory or one of its parent directories.
QDEEP_GATEWAY_PUBLIC_ORIGIN=https://api.example.com
QDEEP_GATEWAY_BASE_URL=https://api.example.com/opencode/v1
QDEEP_OIDC_ISSUER=https://api.example.com/auth/oidc
QDEEP_API_KEY=replace-with-a-gateway-keyFor local development, keep using the repository .env.qdeep.local pattern. For production distribution, prefer user-scoped auth tokens from QDeep OIDC instead of a shared static API key.
The gateway also keeps the legacy /v1 path for compatibility, but production B Code builds should use /opencode/v1 so usage logs identify the caller as opencode.
Publish
Build every platform package and publish to npm:
OPENCODE_VERSION=1.0.0 NPM_TAG=latest bun run publish:npmBuild only the current platform and create local tarballs:
bun run pack:npm:localBefore the first publish, make sure the npm account is logged in and has permission to publish b-code-cli and the generated platform packages such as b-code-cli-darwin-arm64.
