GitHub CLI configuration
See and change the gthb settings: permissions, variables, run records and search by meaning.
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:
gthb work config show
gthb work config set limit 50
gthb work config unset limit
gthb work config set limit 20 --defaults # for every profilePermissions
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:
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 READMEsgthb 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
| 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
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 says.
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.