Files
plugins/packages/aider/aider.agent.js
T
yetone bcc94e5933 aider: Aider's own icon (aider.chat's) on its market card, plugin row and Agents row; 0.1.1
The market card showed the generic agent glyph: neither the registry nor
the package gave a picture. package.json's magpie.icon gives it to the
market card (magpie reads it from npm), and agent.icon to the agent magpie
adds. Ran: bun test packages/aider, bun scripts/check.mjs; the URL answers
200 image/png.
2026-10-10 23:19:06 +08:00

26 lines
895 B
JavaScript

// Aider (aider.chat) keeps its settings in ~/.aider.conf.yml and reaches
// any OpenAI-compatible endpoint through litellm's openai/ prefix, so
// magpie's model goes in as openai/<provider>/<model>, beside magpie's
// address and the key magpie keeps for Aider.
export const agent = {
id: "aider",
name: "Aider",
// aider.chat's own icon, on the Agents page and the plugin's row
icon: "https://aider.chat/assets/icons/apple-touch-icon.png",
bin: "aider",
config: "~/.aider.conf.yml",
model: "model",
prefix: "openai/",
ua: ["aider", "litellm"],
notice: "Aider reads its settings when it starts: restart it to use the new model.",
}
export function connect({ gateway }) {
return {
"openai-api-base": gateway.v1,
"openai-api-key": gateway.key,
// magpie's model ids aren't in litellm's list, so aider would warn on each
"show-model-warnings": false,
}
}