Saving .aider.model.metadata.json on Windows without the .txt ending

Coding with AIAider·· 9 views· 2 min read

On Windows, Notepad adds .txt to file names, and File Explorer hides that ending. The file looks right, but it is called .aider.model.metadata.json.txt, and Aider does not read it.

1. Create the file from PowerShell

Open PowerShell and type:

notepad "$HOME\.aider.model.metadata.json"

Notepad asks whether to create a new file: answer yes. That way the name is exact, because PowerShell gave it. Paste the content and save with Ctrl+S. $HOME is your home folder, C:\Users\your-name.

2. If you use "Save as"

1 As the file type, choose All files (*.*). With "Text documents", Windows adds .txt.
2 Type the name in quotes: ".aider.model.metadata.json". The quotes also stop Windows from changing the name.
3 Choose your home folder, C:\Users\your-name, and save.

3. Check the name

In PowerShell:

Get-ChildItem -Force $HOME\.aider*

The name must end in .json. If it ends in .json.txt, rename it:

Rename-Item "$HOME\.aider.model.metadata.json.txt" ".aider.model.metadata.json"

In Command Prompt, you do the same with dir and ren:

dir /a %USERPROFILE%\.aider*
ren "%USERPROFILE%\.aider.model.metadata.json.txt" .aider.model.metadata.json

Show file endings in File Explorer

So this does not happen again, ask File Explorer to show file name extensions. The option is in the View menu. With it on, a .json.txt file stands out at once.

Take the same care with .aider.conf.yml and .env. On Windows, always check that the name did not end up in .txt.
The content of the file is explained in the .aider.model.metadata.json file, and this article says which folders Aider looks in.

Want to use our models in Aider, on Windows too? Visit the Coding with AI page.

See Coding with AI

SEE ALSO

The .aider.model.metadata.json file: the context and output of each model

Where Aider looks for .aider.model.metadata.json: home folder, repository and start folder

Installing Aider and opening it in your project with an All in One AI model

Aider with All in One AI: the two variables, the openai/ prefix and the context window

Coding with AI in All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $5.36/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.