@belticlabs/wizard
v0.1.0
Published
The Beltic wizard automatically analyzes agent codebases and generates credentials, manifests, and signatures
Readme
Beltic Wizard
Note: This is a heavily modified fork of the PostHog Wizard, optimized specifically for Beltic and Beltic CLI usage. While it shares some architectural patterns with the original PostHog wizard, it has been significantly refactored and customized for Beltic's credential management workflow.
The Beltic wizard automatically analyzes AI agent codebases and generates credentials, manifests, and signatures using the Beltic CLI.
What it does
When you run the wizard in an agent codebase, it will:
- Check/Install Beltic CLI - Ensures the Beltic CLI is installed (via Homebrew or curl)
- Analyze Codebase - Uses AI to detect language, deployment type, model provider, and structure
- Generate Configuration - Creates
.beltic.yamlwith appropriate file patterns - Create Manifest - Runs
beltic initto generateagent-manifest.json - Generate Fingerprint - Runs
beltic fingerprintto create a deterministic hash of your code - Create Keys & Sign - Generates Ed25519 keypair and signs the credential
- Update Files - Adds Beltic entries to
.gitignoreand documents inREADME.md
Usage
# Run in your agent's directory
# First run will prompt you to authenticate via browser
npx @belticlabs/wizard
# Or with explicit Anthropic API key (optional)
npx @belticlabs/wizard --anthropic-key YOUR_API_KEY
# Run in a specific directory
npx @belticlabs/wizard --install-dir /path/to/agentAuthentication
On first run, the wizard will prompt you to authenticate with Beltic via browser OAuth. Your credentials are stored securely in ~/.beltic/credentials.json. Subsequent runs will automatically use your stored credentials.
See AUTHENTICATION.md for detailed authentication flow documentation.
Requirements
- Node.js >= 18.17.0
- Anthropic API Key - Optional. Default API key is provided (Beltic covers costs). Override with
ANTHROPIC_API_KEYenvironment variable or--anthropic-keyflag
Options
| Option | Description | Default |
|--------|-------------|---------|
| --anthropic-key | Anthropic API key for LLM analysis (optional - default key provided) | ANTHROPIC_API_KEY env var or default |
| --install-dir | Directory containing the agent codebase | Current directory |
| --skip-sign | Skip signing (only generate manifest) | false |
| --skip-readme | Skip updating README.md | false |
| --force | Overwrite existing Beltic files | false |
| --debug | Enable verbose logging | false |
Environment Variables
| Variable | Description |
|----------|-------------|
| ANTHROPIC_API_KEY | Anthropic API key for codebase analysis |
| BELTIC_WIZARD_DEBUG | Enable debug mode (true/false) |
| BELTIC_WIZARD_INSTALL_DIR | Default installation directory |
Generated Files
After running the wizard, your project will have:
your-agent/
├── .beltic.yaml # Configuration for fingerprinting
├── agent-manifest.json # Agent metadata and capabilities
├── agent-credential.jwt # Signed credential (JWT format)
├── .beltic/ # Cryptographic keys
│ ├── eddsa-*-private.pem # Private key (gitignored)
│ └── eddsa-*-public.pem # Public key
└── .gitignore # Updated with Beltic entriesAfter Setup
Verify Credential
beltic verify --key .beltic/*-public.pem --token agent-credential.jwtRe-sign After Code Changes
# Update the fingerprint
beltic fingerprint
# Re-sign the credential
beltic signView Credential Contents
# Decode and view the JWT payload
beltic verify --key .beltic/*-public.pem --token agent-credential.jwtDevelopment
Building
pnpm install
pnpm buildRunning Locally
# Build and run
pnpm try --install-dir /path/to/agent
# Or with hot reload
pnpm devTesting
pnpm testHow It Works
The wizard uses Claude to analyze your codebase:
- Detection Phase - Examines file structure,
package.json/pyproject.toml, and dependencies to determine language, deployment type, and AI model provider - Configuration Generation - Uses LLM to generate optimal
.beltic.yamlpatterns based on project structure - CLI Orchestration - Runs Beltic CLI commands in sequence to create and sign credentials
All file modifications are limited to Beltic-specific files. The wizard never modifies your agent's source code.
Supported Languages
- TypeScript/JavaScript (Node.js)
- Python
Supported Deployment Types
- Standalone
- Monorepo
- Embedded
- Plugin
- Serverless
Related Projects
- beltic-cli - CLI for signing and verifying credentials
- beltic-spec - JSON schemas for agent/developer credentials
- @belticlabs/kya - TypeScript SDK for credential verification
License
MIT
