# GitHub CLI configuration (/en/docs/gthb/configuration)

Your agent reaches only what you allow through `gthb`, lists show as many rows as you like, and runs keep only what you
want kept. Each setting is one command, and `config show` tells you where each value came from: the file, a variable
or the default.

Settings live in one file, `config.json`, in the folder `gthb doctor` shows. Each profile has its own part, and
`defaults` apply to every profile.

**On this page:**

1. [Permissions](#permissions)
2. [Variables](#variables)
3. [Run records](#run-records)
4. [Search by meaning](#search-by-meaning)

```sh
gthb work config show
gthb work config set limit 50
gthb work config unset limit
gthb work config set limit 20 --defaults               # for every profile
```

## Permissions [#permissions]

`permissions` decides what a command may do for this profile: `allow`, `ask`, `readonly` or `deny`, per permission
key. A key is a command's name, such as `issues.list`, or a group, such as `api`:

```sh
gthb work config set permissions.api deny               # no live GitHub API for this profile
gthb work config set permissions.memories deny          # no memories on the READMEs
```

`gthb` never writes to GitHub, so permissions here decide which reads an agent may make and what it may write to the
copy on your computer, such as notes and tags. Over MCP there is no one to ask, so `ask` lets the command run.
`GTHB_READ_ONLY=1` refuses every write to the copy, whatever the permissions say. `mcp serve --permission
api.list=deny` makes one key stricter for that server only.

## Variables [#variables]

| Variable | What it does |
| --- | --- |
| `GTHB_PROFILE` | the profile, for a whole shell session |
| `GTHB_TOKEN`, `GTHB_TOKEN_OWNER` | a token and its owner for a script or CI job, in place of `session start` |
| `GTHB_READ_ONLY` | `1` refuses every write |
| `GTHB_NO_UPDATE_CHECK` | `1` turns off the daily check for a newer version |

## Run records [#run-records]

Each command is kept as a run, for `gthb runs list` and `runs show`. With `record` set to `false` only failed runs are
kept, and `--no-record` keeps nothing for one command. `record_input` decides whether a run keeps the words you typed:
`true`, `false`, or `failed` for failed runs only. `keep_runs_for_days` and `keep_successful_runs_for_days` decide how
long runs stay. Secrets are masked either way, as [security](/llms.mdx/docs/gthb/security/content.md#files-on-disk-and-run-records) says.

## Search by meaning [#search-by-meaning]

`sync --embed` makes vectors for search by meaning. `embedding_provider` is `local` by default, a model on this
computer. Set it to `openai` only if you accept that the text of your issues and READMEs goes to OpenAI.
