Use Cases + Implementation

How do you build coding agents with an OpenAI-compatible API?

Run the coding agent against the OpenAI-compatible chat completions endpoint and keep every privileged action in your runtime: the model requests file reads, builds an edit plan and proposes patches, while your service applies them in CI with tests and review. Because the API shape matches OpenAI, existing agent frameworks connect by changing the base URL, and each step can use a different model alias.

Key facts

EndpointPOST https://api.plugsky.com/v1/chat/completions with function calling for repository tools
CompatibilitySame shape as OpenAI; keep existing agent frameworks and change base_url
Models30+ models; use plugsky-coder aliases for edits and cheaper models for triage
ExecutionAll file and test operations run in your CI sandbox, never in the model
Pricing modelFlat monthly self-serve plans with unlimited fair-use usage
Free tierFree plan with 2 free AI models, no card required
GovernanceScoped keys per repository, audit logs and region pinning
RoadmapBatch and fine-tuning endpoints are coming soon

TL;DR

  • The API plans and proposes; your CI applies, tests and reports.
  • Compatibility means existing agent frameworks connect with a base-URL change.
  • Issue one scoped key per repository so a leak has a bounded blast radius.
  • Queue tasks and serialize writes per repository to avoid conflicting patches.
  • Evaluate CI pass rate, review acceptance and cost per merged change.

How it works, step by step

  1. Change the base URL to Plugsky and verify an existing agent framework runs a tool call end to end.
  2. Define repository tools backed by your CI runner: read, search, propose patch, run checks.
  3. Issue a scoped API key per repository and keep it in your secret manager, never in prompts.
  4. Queue agent tasks, process one per repository at a time, and apply patches on isolated branches.
  5. Return check results to the agent for one correction pass, then surface the diff for review.
  6. Track CI pass rate, review acceptance, revert rate and cost per merged change.
1Change the base URLto Plugsky andverify an existing2Define repositorytools backed byyour CI runner:3Issue a scoped APIkey per repositoryand keep it in your4Queue agent tasks,process one perrepository at a5Return checkresults to theagent for one6Track CI pass rate,review acceptance,revert rate and

Original data

POST https://aEndpoint30+ models; usModelsFree plan withFree tierSource: Plugsky facts table · updated 2026-09-25

Try it yourself

Open the OpenAI compatibility checker →

Architecture: model proposes, CI disposes

Split the agent across two trust zones:

  • Model zone: the chat completions call with tool schemas — file reads, searches and patch proposals only.
  • Execution zone: a CI worker that owns the workspace, applies patches, runs checks and enforces policy.
  • Queue: tasks are queued and processed one per repository to avoid conflicting edits.
  • Artifacts: each task produces a branch, a diff and a check report for human review.

Because the request shape matches OpenAI, frameworks you already use for tool calling connect with a base-URL change, and you can swap aliases per step without touching the framework.

Implementation details

Operational choices that keep the agent safe and useful:

  • Use function calling for repository operations; never give the model a general-purpose shell tool.
  • Send only the context each step needs — target files, interfaces and the failing check output.
  • Cap tool loops, patch size and wall-clock time per task; a stuck agent should fail closed.
  • Serialize repository writes and use branch-per-task so two agents cannot race.
  • Store the full trace — model, tools, patches, checks — in your own logs for audit and replay.
  • Rotate scoped keys on schedule and keep them out of prompts and generated code.

Evaluation and operations

Agent value shows up in merged work, not in session logs:

  • CI pass rate: first-apply checks passing before human intervention.
  • Review acceptance: patches merged with minor or no edits.
  • Revert rate: merged changes later undone, tracked per task type.
  • Throughput: tasks completed per hour under concurrency limits.
  • Cost per merged change: total model work divided by accepted diffs.

Run a replay suite of past tasks after every prompt, tool or alias change. Framework updates are common, so treat the replay set as your regression harness.

Limitations

Honest edges of the API-based approach:

  • The model cannot observe runtime behavior, so static analysis and tests are the only evidence.
  • Long refactors exceed practical session budgets; break them into scoped tasks with explicit acceptance checks.
  • Secrets and credentials must never enter model context, even when the agent is debugging configuration.
  • Agent frameworks change quickly; pin versions and validate compatibility on a schedule.
  • Batch and fine-tuning endpoints are coming soon; current pipelines should rely on scheduling and prompt design.

Honest comparison

CapabilityAgent on Plugsky APIVendor-locked agent productFully local agent stack
Framework supportOpenAI-compatible tool callingVendor framework onlyWhatever you build
Model choice30+ aliases, swappable per stepVendor modelsModels you can host
Execution controlYour CI owns the sandboxVendor-run executionYour infrastructure
Keys and auditScoped keys per repo plus your logsVendor-managedFully self-managed
DeploymentCloud, VPC, on-prem, air-gappedVendor cloudOn your hardware

Frequently asked questions

Can I use an existing agent framework?

Yes. The chat completions endpoint is OpenAI-compatible, so frameworks that support tool calling connect by changing the base URL and model names.

Where does the agent run code?

In your CI sandbox. The model only proposes patches; your worker applies and tests them, which keeps execution, secrets and approvals under your control.

How do I scope API keys?

Issue one scoped key per repository, store it in your secret manager, rotate it on schedule, and never place it in prompts or generated files.

How do I prevent two agents from conflicting?

Queue tasks and process one per repository at a time, applying each patch on an isolated branch before review.

Which model should edit code?

plugsky-coder for complex changes, plugsky-coder-fast for routine ones, and cheaper aliases for triage, summarization and log digestion.

What should I measure?

CI pass rate, review acceptance, revert rate, throughput under your limits, and cost per merged change.

Can I evaluate agents cheaply?

Yes. The free plan includes two free models with no card, and the 14-day full-access trial lets you benchmark coding aliases on real repository tasks.