Integration guide · Checked 26 November 2026

Aider with Plugsky

Aider accepts any OpenAI-compatible endpoint, but it needs the openai/ model prefix and a base URL that ends in /v1. This guide gives the environment variables, the config file, architect mode and the failure modes.

Short answer. Set OPENAI_API_BASE=https://api.plugsky.com/v1 and OPENAI_API_KEY to your Plugsky key, then run aider --model openai/plugsky-coder. The openai/ prefix is required. For architect mode, use --model openai/plugsky-reasoning --editor-model openai/plugsky-coder.

Install Aider

python -m pip install aider-install
aider-install

Or use pipx or uv. Aider needs a Git repository; run it from the root of the project you want it to edit.

Environment variables

export OPENAI_API_BASE=https://api.plugsky.com/v1
export OPENAI_API_KEY=sk-live-...
aider --model openai/plugsky-coder

Aider’s OpenAI-compatible path reads OPENAI_API_BASE, not OPENAI_BASE_URL. Setting the wrong variable makes Aider call api.openai.com with a Plugsky key, which returns a 401.

Persistent config

Put the same values in .aider.conf.yml at the repository root or in your home directory:

openai-api-base: https://api.plugsky.com/v1
model: openai/plugsky-coder
weak-model: openai/plugsky-lite
editor-model: openai/plugsky-coder

Do not commit a key to this file. Aider reads OPENAI_API_KEY from the environment, or from .env if you load it yourself.

Which model to use

Plugsky aliases for Aider workloads
AliasUse it forWhy
openai/plugsky-coderDefault coding and edits550B class, 262K context, strong diff following
openai/plugsky-proGeneral workhorseBroader reasoning, same tool-free edit path
openai/plugsky-reasoningArchitect modePlanning and trade-offs before the editor model writes
openai/plugsky-liteCommit messages and summariesCheap, exact-engine ID with no automatic fallback
openai/plugsky-vision-fastScreenshots and UI workImage input; 131K context

Aider does not use OpenAI tool calling for edits; it asks the model to return a diff or a whole-file rewrite. A model that follows the edit format matters more than one that advertises tool calls. plugsky-coder is tuned for this path.

Architect mode

Architect mode uses two models: one to propose the change and one to apply it. A strong planner plus a fast editor is a good fit for a flat-rate plan.

aider --architect \
  --model openai/plugsky-reasoning \
  --editor-model openai/plugsky-coder

If the editor model returns malformed diffs, switch it to openai/plugsky-pro or reduce the number of files in the chat. Aider’s /add and /drop commands control that set.

Repository map and context

Aider builds a repository map from the files in the chat and the Git tree. The map is sent with each request. On a large monorepo, lower the map budget:

aider --map-tokens 2048 --model openai/plugsky-coder

Use /add for the files that matter and /drop for the ones that do not. Aider’s context window setting is separate from Plugsky’s alias limit; keep the total below the alias context in /models.

Commits and weak model

Aider uses the weak model for commit messages and summarisation. Point it at openai/plugsky-lite to keep those calls cheap. If you disable auto-commits, the weak model is used less.

aider --no-auto-commits --weak-model openai/plugsky-lite

Cost display

Aider can estimate cost from a per-token price table. Plugsky is flat-rate, so the estimate will be wrong or zero unless you add a custom price. Do not use Aider’s cost line as a bill; use the Plugsky dashboard for plan usage. Builder and Scale have no monthly token cap or per-token overage.

Limits

The free plan is an evaluation tier: 100 requests and 50K tokens per day, one concurrent request, 32K input and 2K output. Aider’s repository map and repeated diffs will exhaust that quickly. Hobby at $8 gives 1,000 requests and 2M tokens per day; Builder at $60 removes the monthly token cap.

Troubleshooting

  • 401: OPENAI_API_KEY is missing, has whitespace, or Aider is calling OpenAI because OPENAI_API_BASE is not set.
  • 404: the base URL is missing /v1, or it already ends in /v1 and you added /chat/completions. Aider appends the path.
  • Model not found: the openai/ prefix is missing, or the alias is misspelled. Use openai/plugsky-coder, not plugsky-coder alone.
  • Malformed diffs: the model is not following the edit format. Try plugsky-pro, reduce the file set, or switch the edit format with --edit-format.
  • 429: plan RPM, concurrency or daily tokens. Reduce parallel Aider sessions or move to Builder.
  • Context errors: lower --map-tokens, drop files, or use a larger-context alias.

Security

Aider sends the files you add, the repository map and your prompts to Plugsky. Keep secrets out of the chat, use .gitignore and .aiderignore, and do not run it on a repository with credentials in tracked files. The key belongs in an environment variable or a local secrets manager, never in .aider.conf.yml committed to Git.

Give Aider a flat-rate backend

Start free, then move to Hobby or Builder for real repository work.

Start Free → See pricing

Related pages

Sources

Official pages used for this guide
ProjectPage checkedChecked
AiderOpenAI-compatible endpoint26 Nov 2026
AiderConfig file options26 Nov 2026
AiderArchitect mode26 Nov 2026
AiderEdit formats and conventions26 Nov 2026
PlugskyAliases and context limits26 Nov 2026
PlugskyPlan limits26 Nov 2026

Last checked 26 November 2026. Plugsky limits are canonical at /pricing; the model list is at /models.