AIderをMacで使ってみる

AIderを試してみる。vim派の私としてはCursorは何か使う気が起きない。

 

とりあえず下記を参考にしてみる。

https://zenn.dev/kun432/scraps/15a98cb5e8930b

 

公式に記載のインストール方法は何かうまくいかない

python3 -m pip install aider-install

 

参考サイトの方法にしたらうまくいく。

pip install -U aider-chat

参考サイトの通りテスト用に何かのアプリをクローンする

git clone https://github.com/streamlit/chatbot-template

cd chatbot-template

pip install -r requirements.txt 

streamlit run streamlit_app.py

 

テスト用のアプリが動いたのでOpenAIのサイトから取得したAPIキーを入力する。

export OPENAI_API_KEY=xxxxxxxxxx

aider

でも課金しろって怒られる。

litellm.RateLimitError: RateLimitError: OpenAIException - You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs:

https://platform.openai.com/docs/guides/error-codes/api-errors.

The API provider has rate limited you. Try again later or check your quotas.

ClaudeのAPIにしてみたけど金払えって怒られる。あれ?無料で少しくらい使えないんだっけ?

Geminiにしても怒られる。あれ?そうか、モデルが金のかかるいいモデルが選択されているのか。明示的に無料のモデルを指定。

export GEMINI_API_KEY=xxxxxxxxxx

aider --model gemini/gemini-2.0-flash

aider

 

うまくいった

コンソールから話しかけるとちゃんと受け答えしてくれる。

いいね!いいね!