Troubleshooting
Common issues and solutions for aisw.
1. Shell integration not working
Section titled “1. Shell integration not working”If running aisw use updates the profile list but doesn’t change the active environment variable for a tool (like ANTHROPIC_API_KEY), the shell hook might not be loaded.
Diagnosis
Section titled “Diagnosis”Run:
echo $AISW_SHELL_HOOKIf it’s empty, the hook is not loaded.
Solution
Section titled “Solution”- Verify the hook line is in your RC file (
.zshrc,.bashrc, orconfig.fish). - Restart your terminal or source the RC file manually:
Terminal window source ~/.zshrc - Check for shell-specific issues in Shell Integration.
2. “Tool not installed” error
Section titled “2. “Tool not installed” error”If aisw status reports a tool as not installed, aisw cannot find the binary on your PATH.
Solution
Section titled “Solution”- Verify the tool is installed and its binary is on your PATH.
Terminal window which claudewhich codexwhich gemini - If you installed a tool after starting your terminal, try
hash -r(bash) orrehash(zsh) to update the binary cache.
3. Gemini OAuth Capture Fails
Section titled “3. Gemini OAuth Capture Fails”Gemini’s OAuth flow captures a token cache by overriding the HOME directory to a temporary “scratch” location.
Symptom
Section titled “Symptom”aisw add gemini completes the login in the browser, but aisw reports:
Gemini login completed but no credential files were found in the token cache.
Solution
Section titled “Solution”- Ensure
aiswhas permission to create and write to the system temporary directory (usually/tmpor$TMPDIR). - Try using an API key instead:
aisw add gemini work --api-key <key>.
4. Permission Denied errors
Section titled “4. Permission Denied errors”aisw strictly enforces 0600 permissions for your security.
Symptom
Section titled “Symptom”Errors when writing to ~/.aisw/ or ~/.claude/.
Solution
Section titled “Solution”- Ensure your user owns the
~/.aiswdirectory and its contents. - Check if another process or a different version of the tool has locked the credential files.
- On macOS, ensure your terminal has “Full Disk Access” if you are trying to manage files in protected system directories.
5. Duplicate Identity Warning
Section titled “5. Duplicate Identity Warning”If you get a warning that an account identity already exists under a different profile name, it means aisw detected the same email or account ID in the credentials.
Solution
Section titled “Solution”- Use the existing profile name reported in the warning.
- If you genuinely want a second alias for the same account, you may need to rename or remove the existing profile first.
Need more help?
Section titled “Need more help?”If you encounter an issue not listed here, please report it on GitHub.