Short answer. Keep the model on a diff, not the repository. A single-file review fits a free tier; a repo-wide agent loop does not. If you need more than about 30K input tokens per turn or more than a few agent steps, budget for a paid plan.
Why coding is token-heavy
A chat turn is a question and an answer. A coding turn is a system prompt, a file, a diff, the last error and the tool output that produced it. A 500-line file is roughly 6,000 tokens; a diff across three files can be another 3,000; a test log adds more. Ten agent steps at 4,000 to 8,000 tokens each is a 40K to 80K-token task, even though the model produced only a few hundred words.
That shape collides with free-tier limits in a specific order. Requests per minute are rarely the problem. Tokens per minute bind first on providers with small TPM buckets, and the daily token cap binds first on providers with generous TPM.
The practical consequence: context selection is the engineering work.
A working staged-diff reviewer
This script reviews staged changes and returns structured findings. It caps the diff by characters, asks for JSON, and fails closed if the model returns prose. Use plugsky-coder on a paid plan; the free plugsky-lite model also lists JSON mode, but the free plan caps input at 32K and the coding quality is lower.
import json
import os
import subprocess
from openai import OpenAI
client = OpenAI(
api_key=os.environ["PLUGSKY_API_KEY"],
base_url="https://api.plugsky.com/v1",
)
def staged_diff(max_chars: int = 24_000) -> str:
diff = subprocess.run(
["git", "diff", "--cached"],
capture_output=True, text=True, check=True,
).stdout
return diff[:max_chars]
def review(diff: str) -> dict:
resp = client.chat.completions.create(
model="plugsky-coder",
messages=[
{"role": "system", "content": (
"Review this diff. Return JSON with keys blocking, nitpicks, tests. "
"Each item has file, line, issue, fix. If the diff is truncated, say so."
)},
{"role": "user", "content": diff},
],
response_format={"type": "json_object"},
max_tokens=800,
)
return json.loads(resp.choices[0].message.content)
if __name__ == "__main__":
print(json.dumps(review(staged_diff()), indent=2))
Truncate by file or hunk, not in the middle of a line, and tell the model what was cut. A reviewer that silently loses the last file is worse than one that says "three files omitted". Validate the JSON before acting on it, and never auto-apply a patch from a model response without a test run.
Editor and agent integrations
Most coding tools accept an OpenAI-compatible base URL. Groq documents native support for Cline, Roo Code, Kilo Code, OpenCode and Factory Droid; Plugsky's docs cover the same pattern.
For a free tier, use the model for chat, inline explanations and single-file review. Turn off auto-tool loops that read files, run tests and retry without a step limit. Those loops are where a 200K-token day disappears in twenty minutes. For paid plans, coder models offer 256K context and up to 16K output, which makes multi-file review and longer tool loops practical.
Context strategy that survives
Retrieve by the import graph, not by directory. If the changed file imports a module, include its public interface; if a test covers the change, include the test. Send the diff plus the signatures, not every implementation. Summarize test output to the failing assertion and the relevant stack frames.
Pin the model ID in your tool config. A provider may route the same friendly name to a different checkpoint, and a coding prompt tuned for one model can behave differently on another. Log the model, request ID and token counts for each review so a bad run is reproducible.
Long context is not memory. Plugsky's main models support 262,144 tokens, but plan input caps still apply: 32K on Free, 64K on Hobby, 128K on Starter and 256K on Builder.
| Coding task | Typical input per turn | Free-tier verdict | Better fit |
|---|---|---|---|
| Inline autocomplete | 500-1,000 tokens | Works | Free |
| Single-file review | 3K-6K tokens | Works | Free |
| Multi-file refactor | 20K-40K tokens | 32K cap and TPM are tight | Hobby, 64K input |
| Agent loop, 10 steps | 60K-120K total | Not viable on 250K/day | Builder |
| Repo-wide Q&A | 100K-250K tokens | Paid only | Builder or Scale |
When to pay for coding
Plugsky Hobby is $8 per month for 1,000 requests and 2 million tokens per day, with 64K input and 8K output. Starter is $20 for 2,000 requests, 5 million tokens and 128K input. Builder ($60) removes the daily token cap, raises input to 256K, and allows 10 concurrent requests at 600 RPM; Scale ($120) doubles concurrency and RPM and raises input to 512K.
If a single review needs more than 20K input tokens, or an agent more than five steps, the free tier will truncate the task or exhaust the day.
FAQ
Can I use a free LLM API in VS Code?
Yes, through an OpenAI-compatible extension such as Cline, Roo Code or Kilo Code. Set the provider to OpenAI-compatible, enter the base URL, paste the key, and choose a model ID. Groq documents native support for these tools; any compatible endpoint follows the same pattern.
Which model should I use for code?
A coder-tuned model with enough context for your diff and reliable tool calling. Benchmark it on your own repository rather than a public leaderboard; a model that follows a patch format and passes tests is worth more than one that writes elegant prose.
Why does my coding agent fail after a few steps?
Each step resends the conversation, including earlier tool output, so the prompt grows quickly. Free tiers cap tokens per minute and per day. Cap the steps, truncate tool output, and summarize old turns before raising the plan.
Can I send proprietary code to a free API?
Check the provider's training and retention terms before you do. Plugsky says it does not train on prompts or completions and does not store request bodies; free-tier failover providers may keep short-lived abuse logs. Use a paid no-training route or a self-hosted model for sensitive code.
Reviewed 20 November 2026. Primary sources checked 20 November 2026: Groq coding integrations, Groq rate limits, Plugsky model catalogue, Plugsky pricing. Free-tier limits are published ceilings, not guarantees; confirm them in the provider console before capacity planning.