add-provider

add-provider is a skill for Claude Code, Codex from ThinkInAIXYZ/deepchat. It costs 52 tokens per session (994 once invoked), scanned A, original, Apache-2.0.

A development guide for adding a new language-model provider to DeepChat, an AI chat application. It covers provider settings, authentication, model lists, API connections, and provider-specific behavior.

In plain words
What is it for?
Use it to add provider profiles, API-key or OAuth login, model mappings, custom request handling, and checks for whether a provider works.
Why use it?
It provides the required information and source locations for connecting a provider without guessing how the application's provider system works.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

About the project

DeepChat is an open-source desktop client for AI agents that keeps user data local first and connects agents with services such as MCP, Skills, ACP, and messaging apps. It is for people who want to use and control AI assistants from a desktop application. The catalogue add-ons extend DeepChat’s agent workflows.

ThinkInAIXYZ/deepchat · 6,309 stars · on GitHub · deepchat.thinkinai.xyz

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/thinkinaixyz/deepchat/add-provider
Any agent
npx skills add ThinkInAIXYZ/deepchat --skill add-provider
Clone the repo
git clone --depth 1 https://github.com/ThinkInAIXYZ/deepchat

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-provider

README.md
[![agentmods](https://agentmods.dev/badge/skills/thinkinaixyz/deepchat/add-provider.svg)](https://agentmods.dev/skills/thinkinaixyz/deepchat/add-provider)
Your own site
<a href="https://agentmods.dev/skills/thinkinaixyz/deepchat/add-provider"><img src="https://agentmods.dev/badge/skills/thinkinaixyz/deepchat/add-provider.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00994
Opus 5 $0.00026 $0.00497
Sonnet 5 $0.00010 $0.00199
Haiku 4.5 $0.00005 $0.00099

Measured 6d ago against content hash 03c082cf9563, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

add-provider scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/add-provider/SKILL.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add Provider

Goal

Generate DeepChat provider integration changes against the current provider architecture. Keep provider display data in PublicProviderConf, map runtime behavior to known transports, and use a special provider implementation only when the API behavior requires one.

Required Inputs

Collect or derive these before editing source:

  • Provider ID in kebab case.
  • Display name.
  • API type or known transport family.
  • Default base URL.
  • Auth type: API key, no auth, OAuth, profile credentials, or provider-specific credential.
  • Model metadata source: built-in config, provider-db, config-db, live model fetch, or custom only.
  • Test model ID and check strategy.
  • Official website, API key URL, docs URL, model list URL.
  • Request quirks: headers, endpoint suffixes, route rewrites, streaming shape, tool-call support, reasoning support, image/audio/embedding endpoints, or proxy requirements.

Supported Paths

OpenAI-Compatible API

Use this when the provider supports OpenAI Chat Completions or Responses-compatible HTTP APIs.

Typical files:

  • src/main/provider/defaults.ts
  • src/main/provider/providerId.ts
  • src/main/provider/providerRegistry.ts
  • src/shared/providerDbCatalog.ts when models come from the public provider database
  • test/main/** provider registry or creation tests

Existing Native Transport

Use this when the provider maps to an existing DeepChat transport such as Anthropic, Gemini, Vertex, Azure, Bedrock, Ollama, or ACP.

Typical files:

  • src/main/provider/defaults.ts
  • src/main/provider/providerRegistry.ts
  • Settings components only when the existing generic form lacks required fields
  • Focused tests for provider creation and connection checks

Special Provider

Use this when auth, request shape, streaming, discovery, or error handling differs from existing transports.

Typical files:

  • src/main/provider/providers/<providerName>Provider.ts
  • src/main/provider/<providerName>Adapter.ts
  • src/main/provider/managers/providerInstanceManager.ts
  • src/shared/contracts/routes/* and src/renderer/api/*Client.ts for interactive auth
  • src/renderer/settings/components/* for provider-specific settings UI
  • Main and renderer tests covering the new behavior

Read the full file on GitHub · 122 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 122 lines · 52 tokens per session scan A 03c082cf9563

Subscribe to this mod's changes

add-provider is a skill published in the GitHub repository ThinkInAIXYZ/deepchat (6,309 stars, last pushed today), licensed Apache-2.0. It adds 52 tokens to every session and 994 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

sync-upstream

Sync the Switchboard client with a newer official LibreChat server version — a stable release, a release candidate, or a PARTIAL sync up to an untagged upstream commit (e.g. current dev HEAD). If the client is ALREADY at the target commit, runs an AUDIT of the last synced delta to catch anything that was missed.…

garfiec/Librechat-Mobile · 89 tokens

audit-deps

Audit open dependabot PRs in this repo. Spawns one investigator per PR (each with a codebase-walk sub-agent), produces a comparison table with per-PR risk + recommendation, and proposes a merge order that minimizes rebase churn. Audit-only — stops at recommendations; user authorizes execution. Use when dependabot has…

garfiec/Librechat-Mobile · 86 tokens

release-highlights

Add a hand-written Highlights section to a GitHub release whose notes were auto-generated, summarizing the release's PRs in user-facing language above the generated changelog. Reads every PR in the range, drafts the section in the repo's house style, asks about ambiguous wording, and writes only after approval. Use…

garfiec/Librechat-Mobile · 94 tokens

update-web-assets

Update the third-party JavaScript vendored into the app for the artifact, diagram, and math WebViews (KaTeX, mermaid, marked, highlight.js, Tailwind, Babel, React). Checks what is outdated, reads each pin's rationale before proposing a bump, re-downloads from the official source, verifies the lock, and runs the gates.…

garfiec/Librechat-Mobile · 124 tokens

proactive-agent

Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Now with WAL Protocol, Working Buffer, Autonomous Crons, and battle-tested patterns. Part of the Hal Stack 🦞.

MerkyorLynn/Lynn · 46 tokens

novel-workshop

小说创作工作台。用户说写小说、创作小说、写故事、写穿越文、写言情、写科幻、创作故事、开始创作、继续写、写下一章、多视角、POV、装订成册时使用。AI-assisted novel writing workbench for outline, characters, chapter drafting, multi-POV narrative, editing, and book assembly.

MerkyorLynn/Lynn · 90 tokens