Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Aider error

Aider: Insufficient credits with the API provider. Please add credits

Error message
Insufficient credits with the API provider. Please add credits.

Status: By designLast verified 1 documented fix2 sources

What it means

The provider returned an APIError containing "insufficient credits" with code 402. Since v0.81.0 aider no longer retries this error.

Causes

  • Your account with the API provider is out of credits.

How to fix it

  1. Fix 1.

    Add credits to your API provider account.

More Aider errors

All 17 Aider errors

FAQ

What does "Insufficient credits with the API provider. Please add credits" mean in Aider?

The provider returned an APIError containing "insufficient credits" with code 402. Since v0.81.0 aider no longer retries this error.

How do I fix "Insufficient credits with the API provider. Please add credits"?

Add credits to your API provider account.

Is this Aider error fixed?

Status: By design. Expected behavior, not a bug. The documented fixes change the setup that triggers it. Affected versions: Message and no-retry behavior since v0.81.0 ("Prevent retrying API calls when the provider reports insufficient credits.").

Sources

Last verified against 2 sources: official docs, maintainer replies and release notes.

Newsletter

Fixes for the tools you use, weekly

One email per week. New coding agent releases, what broke, and how developers are working around it.