Skip to content

Commit 0f187f3

Browse files
Update secrets advice.
1 parent 574a3bd commit 0f187f3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,20 @@ Python >= 3.9 or Docker
3636

3737
## Configuration
3838

39-
Provide a GitHub token for an account that is entitled to use [GitHub Models](https://models.github.ai) via the `AI_API_TOKEN` environment variable. Further configuration is use case dependent, i.e. pending which MCP servers you'd like to use in your taskflows.
39+
Provide a GitHub token for an account that is entitled to use [GitHub Models](https://models.github.ai) via the `AI_API_TOKEN` environment variable. Further configuration is use case dependent, i.e. pending which MCP servers you'd like to use in your taskflows. In a terminal, you can add `AI_API_TOKEN` to the environment like this:
4040

41-
You can set persisting environment variables via an `.env` file in the project root.
41+
```sh
42+
AI_API_TOKEN=<your_github_token>
43+
```
44+
45+
Or, if you are using GitHub Codespaces, then you can [add a codespace secret](https://github.com/settings/codespaces/secrets/new) so that `AI_API_TOKEN` is always available in your codespace.
46+
47+
We do not recommend storing secrets on disk, but you can persist non-sensitive environment variables by adding a `.env` file in the project root.
4248

4349
Example:
4450

4551
```sh
46-
# Tokens
47-
AI_API_TOKEN=<your_github_token>
4852
# MCP configs
49-
GH_TOKEN=<your_github_token>
5053
CODEQL_DBS_BASE_PATH="/app/my_data/codeql_databases"
5154
AI_API_ENDPOINT="https://models.github.ai/inference"
5255
```

0 commit comments

Comments
 (0)