Skip to main content

Overview

HAI Build Code Generator can be configured through various settings to customize your development experience. Settings can be managed through the VS Code settings interface or by modifying configuration files directly.

Extension Configuration

Workspace Settings

The extension supports workspace-specific configuration through the .hai.config file placed at the root of your workspace.
The .hai.config file is not git-excluded by default. Ensure sensitive keys are not committed to your repository.

Configuration File Format

The .hai.config file uses a simple key-value format:

Environment Variables

For local development, you can use environment variables to configure the extension. See the .env.example file for available options.

Activation Events

The extension activates automatically in the following scenarios:

On Language Detection

Activates when any programming language file is opened

On Startup

Activates when VS Code finishes starting up

Workspace Contains

Activates when workspace contains evals.env file

Commands and Keybindings

HAI Build provides several commands accessible via the Command Palette and keyboard shortcuts.

Default Keybindings

keybinding
Jump to HAI chat input or add selected code to chat

Available Commands

Storage Configuration

HAI Build supports object storage backends for syncing data across devices.

S3 Storage

Cloudflare R2 Storage

Storage Sync Options

number
default:"30000"
Interval for sync worker in milliseconds
number
default:"5"
Maximum retries for failed sync operations
number
default:"10"
Number of files to sync in each batch
boolean
default:"false"
Enable backfill of existing data on startup

Advanced Settings

Multi-Root Workspace Debugging

gRPC Recorder

Enable gRPC request/response recording for testing:

Test Mode

Next Steps

LLM Providers

Configure AI model providers

Telemetry

Set up telemetry and monitoring

Experts

Create custom domain experts