add-provider

add-provider is a command for coding agents from pixeltable/pixeltable-skill. It costs 19 tokens per session (448 once invoked), scanned A, original, Apache-2.0.

A command for adding an AI provider call to a Pixeltable table as a computed column. A computed column is a field whose value is generated automatically from other data in the row.

In plain words
What is it for?
Use it to connect providers such as OpenAI, Anthropic, Gemini, Groq, Bedrock, or Whisper to Pixeltable tables.
Why use it?
It helps avoid incorrect model imports, response-field handling, and repeated manual loops over table rows.

Command

Part of the pixeltable plugin — 1 skill, 2 commands, 2 agents, 2 hooks shipped together

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 commands/pixeltable/pixeltable-skill/add-provider
Clone the repo
git clone --depth 1 https://github.com/pixeltable/pixeltable-skill

Or install pixeltable, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 2 agents, 2 hooks.

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/commands/pixeltable/pixeltable-skill/add-provider.svg)](https://agentmods.dev/commands/pixeltable/pixeltable-skill/add-provider)
Your own site
<a href="https://agentmods.dev/commands/pixeltable/pixeltable-skill/add-provider"><img src="https://agentmods.dev/badge/commands/pixeltable/pixeltable-skill/add-provider.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 448 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 $0.00019 $0.00448
Opus 5 $0.00010 $0.00224
Sonnet 5 $0.00004 $0.00090
Haiku 4.5 $0.00002 $0.00045

Measured yesterday against content hash b319a3f6391f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

commands/add-provider.md · 44 lines

What it actually says

Wire an AI provider into a Pixeltable table as a computed column. The model runs automatically on insert : never write a for row in ...: loop calling the model.

Request: $ARGUMENTS

Steps:

  1. Identify the provider module under pixeltable.functions.<provider> (e.g. openai, anthropic, gemini, groq, bedrock, together, fireworks, ollama, whisper). Confirm the exact import and output shape in the pixeltable skill (references/providers.md → Quick Reference) before writing code.

  2. Add the call as a computed column, extracting the right field from the response. App file (assignment on the model):

from pixeltable.functions.openai import chat_completions

class Docs(TableModel, name='docs'):
    content: pxt.String
    summary = chat_completions(
        messages=[{'role': 'user', 'content': content}],
        model='gpt-4o-mini',
    ).choices[0].message.content

Then pxt schema update app.py my_app. Notebook / REPL:

from pixeltable.functions.openai import chat_completions

t.add_computed_column(
    summary=chat_completions(
        messages=[{'role': 'user', 'content': t.content}],
        model='gpt-4o-mini',
    ).choices[0].message.content,
    if_exists='ignore',
)
  1. Set API keys via config/env, not hard-coded. API traps: SKILL.md. Stack: anti-patterns.md.

  2. After adding, show how to insert a row and collect() the result so the user can verify output shape.

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. yesterday Changed · +10 lines b319a3f6391f
  2. 3d ago Changed c532271799cf
  3. 5d ago First seen · 34 lines · 19 tokens per session scan A 529bbde7c74f

Subscribe to this mod's changes

add-provider is a command published in the GitHub repository pixeltable/pixeltable-skill (5 stars, last pushed 2d ago), licensed Apache-2.0. It adds 19 tokens to every session and 448 once invoked, about $0.0001 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.