Skip to content

Commit bc9743c

Browse files
Add env guidance for PowerShell
1 parent c6f9c4f commit bc9743c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/getting-started/windows.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,25 @@ npx mycoder "Your prompt here"
9090
### Setting up API keys
9191

9292
1. **Temporary Environment Variables**:
93+
94+
From the command prompt (CMD):
9395
```
9496
set ANTHROPIC_API_KEY=your-api-key
9597
```
96-
97-
2. **Persistent Environment Variables**:
98+
In a PowerShell session:
99+
```
100+
$env:ANTHROPIC_API_KEY="your-api-key"
101+
```
102+
103+
3. **Persistent Environment Variables**:
98104
- Right-click on "This PC" or "My Computer"
99105
- Select "Properties"
100106
- Click "Advanced system settings"
101107
- Click "Environment Variables"
102108
- Under "User variables", click "New"
103109
- Add your API key (e.g., ANTHROPIC_API_KEY as variable name)
104110

105-
3. **Using .env File**:
111+
4. **Using .env File**:
106112
- Create a file named `.env` in your project directory
107113
- Add your API key: `ANTHROPIC_API_KEY=your-api-key`
108114

@@ -122,4 +128,4 @@ MyCoder can use a browser for research. On Windows:
122128
- **Node Version**: Ensure you're using Node.js 20+
123129
- **Path Issues**: Make sure npm global bin directory is in your PATH
124130

125-
If you encounter any other issues, please check our [Discord community](https://discord.gg/5K6TYrHGHt) for help.
131+
If you encounter any other issues, please check our [Discord community](https://discord.gg/5K6TYrHGHt) for help.

0 commit comments

Comments
 (0)