Skip to content

fix: pass --no-verify-ssl to version check, fix SSL_VERIFY, add AIDER_TAGS_CACHE_DIR#5177

Open
superShen0916 wants to merge 2 commits into
Aider-AI:mainfrom
superShen0916:fix/ssl-verify-version-check
Open

fix: pass --no-verify-ssl to version check, fix SSL_VERIFY, add AIDER_TAGS_CACHE_DIR#5177
superShen0916 wants to merge 2 commits into
Aider-AI:mainfrom
superShen0916:fix/ssl-verify-version-check

Conversation

@superShen0916
Copy link
Copy Markdown

@superShen0916 superShen0916 commented May 23, 2026

Summary

Three small fixes for enterprise/custom-environment users:

1. Version check respects --no-verify-ssl (Fixes #664)

The version check (querying pypi.org) was always using default SSL verification, even when --no-verify-ssl was passed. This caused startup errors for users behind corporate firewalls with self-signed certificates.

2. SSL_VERIFY env var fixed from "" to "false"

LiteLLM checks SSL_VERIFY as a string. Empty string "" may not be recognized as "disable SSL". Changed to "false" for correct LiteLLM behavior.

3. Configurable tags cache location (Fixes #2325)

Added support for AIDER_TAGS_CACHE_DIR environment variable. When set, the .aider.tags.cache.v3 directory will be created at the specified path instead of the repo root. This allows a completely uncluttered repo when combined with existing .env support.

Changes

  • aider/versioncheck.py: Add verify_ssl parameter, pass to requests.get()
  • aider/main.py: Pass args.verify_ssl to check_version(), fix SSL_VERIFY env var
  • aider/repomap.py: Add get_tags_cache_dir() classmethod and AIDER_TAGS_CACHE_DIR env var support

Test plan

  • --no-verify-ssl now propagates to all HTTP requests including version check
  • AIDER_TAGS_CACHE_DIR=/custom/path aider creates cache at /custom/path/.aider.tags.cache.v3
  • All existing behavior unchanged with default settings

Risk

Low. All changes are configuration-only and default to existing behavior.

🤖 Generated with Claude Code

shenpeng.sp0916 and others added 2 commits May 23, 2026 13:05
The version check (pypi.org query) was always using default SSL
verification, even when --no-verify-ssl was passed. This caused
startup errors for users behind corporate firewalls with self-signed
certificates.

Also fixes the SSL_VERIFY environment variable from "" to "false"
so LiteLLM correctly recognizes it.

Fixes Aider-AI#664

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Adds support for the AIDER_TAGS_CACHE_DIR environment variable to let
users relocate the .aider.tags.cache.v3 directory outside the repo root.
This allows a completely uncluttered repo experience when combined with
the existing .env support for other aider paths.

Fixes Aider-AI#2325

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


shenpeng.sp0916 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@superShen0916 superShen0916 changed the title fix: pass --no-verify-ssl to version check and fix SSL_VERIFY env var fix: pass --no-verify-ssl to version check, fix SSL_VERIFY, add AIDER_TAGS_CACHE_DIR May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] User-defined location for .aider.tags.cache.v3 Add an option to skip SSL verification for users behind firewalls

2 participants