This guide helps you set up your development environment correctly to avoid warnings about missing GitHub CLI and OpenAI API keys.
## GitHub CLI
GitHub CLI has been added to the Dockerfile and will be automatically installed when your container is built. If you're seeing warnings about GitHub CLI missing, you may need to:
1. Rebuild your container by running the command in VS Code:
- Press `F1` and search for "Rebuild Container"
- Or select "Dev Containers: Rebuild Container" from the command palette
2. After rebuilding, authenticate with GitHub:
```bash
gh auth login
```
## OpenAI API Key
To permanently set up your OpenAI API key (required for Smart-Fill functionality):
The development environment requires a `.env` file in the root directory of the repository. This file is not included in Git (it's gitignored) because it may contain sensitive information.
**Before starting a codespace:**
1. Create a `.env` file in the root directory
2. The file can be empty if you don't need any environment variables
3. If you need to use OpenAI API features, add your key like this:
```
OPENAI_API_KEY=your_api_key_here
```
**Note:** Without a `.env` file (even an empty one), the codespace environment will fail to start.