Common Problems
chatcli command not found
chatcli command not found
bash: chatcli: command not found or zsh: command not found: chatcli.Cause: The Go binary directory is not in your system’s PATH.Solution:- Open your shell configuration file (
~/.bashrc,~/.zshrc, etc.) - Add the following to the end of the file:
- Restart your terminal or run
source ~/.zshrc
Error "No LLM provider is configured"
Error "No LLM provider is configured"
.env file.Solution:- Create or open the
.envfile in the directory where you runchatcli(or in yourHOME) - Add credentials for at least one provider:
- Save and run
chatcliagain
Changes to .env have no effect
Changes to .env have no effect
LLM_PROVIDER or another value, but ChatCLI uses the old configuration.Cause: ChatCLI loads configuration at startup.Solution: Use the /reload command within interactive mode to reload variables instantly.@file cannot find a file/directory
@file cannot find a file/directory
- Relative Paths — are relative to the directory where you ran
chatcli. E.g.:@file ./project/src/main.go - Home (
~) — works as a shortcut:@file ~/documents/notes.txt - Permissions — check with
ls -lthat you have read permission on the file
Agent Mode does not execute anything
Agent Mode does not execute anything
- Type the command number (e.g.,
1) to execute it individually - Type
ato execute all commands in sequence - Use
--agent-auto-execin one-shot mode for automatic execution of safe commands
Ollama provider is not detected
Ollama provider is not detected
OLLAMA_ENABLED=true, the provider does not appear available.Solution:- Ollama Server — confirm it is running:
ollama serve - Model downloaded — check with
ollama list. If empty, download one:ollama pull llama3 - Base URL — if not at the default address, set it in the
.env:
Truncated or incomplete responses
Truncated or incomplete responses
MAX_TOKENS for your provider in the .env:API call timeout
API call timeout
- Use
--timeoutto set a limit:chatcli -p "question" --timeout 60s - Configure
MAX_RETRIESandINITIAL_BACKOFFin the.envfor automatic retries - Consider configuring Provider Fallback for redundancy
Agent needs to create a temporary file but /coder blocks it
Agent needs to create a temporary file but /coder blocks it
/coder mode validates that every write happens inside the project directory. Starting with this release, ChatCLI creates a Session Workspace at $TMPDIR/chatcli-agent-<random>/ that is automatically on the allowlist:write or patch, use the absolute path that appears in the system prompt (the $CHATCLI_AGENT_TMPDIR variable is not expanded inside the file argument).Cleanup runs automatically on exit; set CHATCLI_AGENT_KEEP_TMPDIR=true to preserve and inspect.Tool result truncated but I cannot see the full content
Tool result truncated but I cannot see the full content
[full output saved to /tmp/chatcli-agent-XXX/tool-results/...], the path is on the agent’s read allowlist. Just open it with read_file:A /metrics endpoint or huge log saturates the context
A /metrics endpoint or huge log saturates the context
@webfetchfilters — passfilter,exclude,from_line/to_lineto filter before truncation, orsave_to_file: trueto persist the body to the scratch dir and read slices later withread_file. See Web Tools.- Subagent delegation —
delegate_subagentruns the analysis in an isolated context window and returns only the summary. See Subagent Delegation.
Subagent refuses to run with 'subagent depth N exceeds maximum'
Subagent refuses to run with 'subagent depth N exceeds maximum'
prompt about what needs to be done.The memory vault does not show a change, or lists notes as kept
The memory vault does not show a change, or lists notes as kept
~/.chatcli/vault) is a one-way projection of memory: it syncs in the background about 5 seconds after memory changes (at most 60 seconds under a steady stream of changes), and what you edit there never flows back into memory./memory vault statusshows the directory and the last sync;/memory vault syncsyncs now.- Kept notes are ones you edited by hand, or files chatcli never wrote: they are never overwritten.
/memory vault sync --forceregenerates chatcli’s own notes (your edits to them are lost); a file chatcli never wrote is kept even then. - Nothing appears at all: check
CHATCLI_MEMORY_VAULT(a falsey value stops it;/memory vault syncstill writes it on demand) andCHATCLI_MEMORY_VAULT_DIR.
A link I drew disappeared, or unlink says the notes are connected by the data
A link I drew disappeared, or unlink says the notes are connected by the data
- A link drawn with
@memory linkor/memory linkto a fact that was later superseded follows it to the fact that replaced it. - A link whose note no longer exists (a forgotten fact, a deleted context) is kept while the note is missing and dropped by memory compaction once it has been missing for 30 days.
/memory unlinkremoves only links you drew. Links that come from the data itself — a fact’s project or tags, a topic’s facts, a[[wikilink]], a name mentioned in the text — are listed instead; change that data to change the link.
Encrypted data: protect it and recover it
Your sessions, memory and other local data are encrypted at rest by default. Encryption means the key matters: these scenarios cover how not to lose access and how to get it back."encrypted at rest but CHATCLI_ENCRYPTION_KEY is not set" or "Locked stores"
"encrypted at rest but CHATCLI_ENCRYPTION_KEY is not set" or "Locked stores"
secret-tool but no desktop session. /config security shows unavailable with the reason.What happens meanwhile: nothing is lost. Memory stores that cannot be opened are locked read-only so nothing overwrites them, and sessions fail to load instead of loading empty.Fix: unlock the keychain (log in to the desktop, or security unlock-keychain on macOS) and run ChatCLI again. Where there is never a keychain, set CHATCLI_ENCRYPTION_KEY to your recovery key.New machine, reinstalled system or reset keychain
New machine, reinstalled system or reset keychain
~/.chatcli to the new machine, then:/config security use-keychain: your data moves to the new machine’s keychain key, and you can remove the variable.With a recovery file instead, a single command does both: /config security recovery-key --restore <file> (it asks for the file’s passphrase).Without a recovery key and without the old keychain, the encrypted stores cannot be recovered. That is the point of encryption. Exports you made earlier (/session export, /memory export) are plaintext and still import.Cron, SSH or a container: "the credential key of this installation lives in the OS keychain"
Cron, SSH or a container: "the credential key of this installation lives in the OS keychain"
~/.chatcli/.auth-key.keychain to make the error go away: it is what stops a second key from being created.Going back to an older ChatCLI version
Going back to an older ChatCLI version
CHATCLI_ENCRYPTION_KEY=off if you use the new version again.Turning encryption off
Turning encryption off
export CHATCLI_ENCRYPTION_KEY=off stops encrypting new data. Data already encrypted keeps opening. To also decrypt what exists, run /config security reseal while it is off. To just read one file, use /config security reveal <file> instead: nothing on disk changes.A restored backup brought back an old .auth-key
A restored backup brought back an old .auth-key
~/.chatcli/.auth-key when you have confirmed /config security shows the keychain key.I edited an encrypted file, or a file is damaged
I edited an encrypted file, or a file is damaged
- Restore that file from a backup.
- Daily notes are the exception you can edit: a note saved in plaintext by hand still reads, and is encrypted again on the next write.
- To read or change your data outside ChatCLI, export it first (
/session export,/memory export,/context export). To read memory and contexts as notes, open the memory vault (~/.chatcli/vault), kept in plaintext for that purpose.
"the OS keychain holds a different credential key than ~/.chatcli/.auth-key"
"the OS keychain holds a different credential key than ~/.chatcli/.auth-key"
chatcli / auth-key item that is not your key (often left there by an older build or a test run), while your real key is the file ~/.chatcli/.auth-key. ChatCLI never overwrites a keychain key on a guess, so it keeps using the file: your data, credentials and recovery key are not affected.Fix: run /config security use-keychain. It moves the file key into the keychain only after checking that it opens your credential store and your encrypted data (with no credential store, because you never logged in, the encrypted data alone is the proof), keeps the keychain’s previous value as auth-key.previous, and reads the key back before removing the file. The key itself does not change, and the warning stops.Switching CHATCLI_KEYCHAIN_BACKEND between keychain and file
Switching CHATCLI_KEYCHAIN_BACKEND between keychain and file
file copies the key from the keychain into ~/.chatcli/.auth-key (mode 0600) and keeps the keychain item; switching back to keychain or auto uses the keychain again. The only thing to keep in mind is that with file the key sits on disk next to the data.Using the same data on two machines
Using the same data on two machines
CHATCLI_ENCRYPTION_KEY on both (for example your recovery key from the first one), run /config security reseal once on each, and copy or sync ~/.chatcli between them.Still having problems?
Debug Logs
LOG_LEVEL=debug and check ~/.chatcli/app.log for full error details.Open an Issue
chatcli --version), OS, Go version, steps to reproduce, and relevant logs.