Skip to content

First Steps

Configure Byte and run your first session.


Prerequisites

Before running Byte:

  • Git repository - Byte operates inside a git repository
  • Good terminal - A modern terminal emulator with proper rendering support (like Kitty, Foot, WezTerm, or Alacritty)
  • API key - One of these environment variables must be set:
  • ANTHROPIC_API_KEY for Claude models
  • GEMINI_API_KEY for Google Gemini
  • OPENAI_API_KEY for OpenAI models

Configuration

Set Your API Key

Export the environment variable for your chosen provider:

$ export ANTHROPIC_API_KEY=your-key-here

Or create a .env file in your project root:

$ echo "ANTHROPIC_API_KEY=your-key-here" > .env

Byte runs from within a git repository:

$ cd /path/to/your/project
$ git init  # If not already a git repo

Running Byte

Launch Byte from your project directory:

$ byte

On first run, Byte creates:

  • .byte/ directory in your project root
  • config.yaml with default configuration
  • Cache and history directories

Tip

Add .byte/cache to your .gitignore to exclude temporary files and chat history.


The .byte Directory

Byte creates a .byte/ directory containing:

  • config.yaml - Configuration settings for model selection, tool availability, and behavior (see Settings Reference)
  • cache/ - Temporary data and performance optimizations
  • conventions/ - Project-specific style guides and coding standards that are automatically included in the AI's context

See the Conventions guide to learn how to define project-specific coding standards that Byte automatically includes in the AI's context.


Basic Usage

Adding Files to Context

The AI needs to know about files before suggesting changes:

/add src/main.py

Adding a file to context

Making Changes

Ask Byte to modify code:

> Refactor the main function to use dependency injection

Review the proposed changes, then approve or reject them.

Learn how to work with files in the AI's context - see File Context for details on adding, viewing, and removing files.