Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

omp-atomcode-provider

An omp / pi provider extension that registers AtomCode CodingPlan's free quota as a provider. It routes through the api.gitcode.com unsigned endpoint (does not go through the llm-api.atomgit.com signed gateway) and reuses the login token from ~/.atomcode automatically.

Install

omp plugin install <owner>/omp-atomcode-provider
# or from a local clone: omp plugin install ./omp-atomcode-provider

Usage

omp --model atomcode/deepseek-ai/DeepSeek-V4-Flash "write a quicksort"

Or pick it via /model inside an omp session.

Note: omp currently resolves --provider X --model Y before extension providers are loaded, so use the --model atomcode/<model-id> form for extension-registered providers.

Models

model id notes
atomcode/deepseek-ai/DeepSeek-V4-Flash 1M context window, with reasoning (DeepSeek thinking chain). The only usable text model on CodingPlan Lite

Use the gitcode full name (not the CodingPlan short name deepseek-v4-flash) — api.gitcode.com expects the full name; the short name 404s.

GLM-5.2 requires CodingPlan Pro (Lite has no quota), and Qwen3-VL is a vision model (not useful for coding), so neither is registered.

Credentials

Auto-reads ~/.atomcode/auth.toml (generated by atomcode login). Re-run atomcode login when the token expires.

How it works

  • Upstream: https://api.gitcode.com/api/v5/chat/completions, OpenAI-compatible, unsigned (just Bearer <token> + User-Agent: atomcode/4.26.0).
  • Uses omp's built-in openai-completions protocol (omp itself handles messages/tools/stream/toolcall conversion), so the extension is thin — it only registers the provider + model list + reads the token + sets the UA.
  • Quota: drawn from the gitcode account's CodingPlan quota.

Acknowledgements

  • pi-commandcode-provider — the reference omp provider extension. This project follows its structure (package.json's pi.extensions field, the ExtensionAPI / registerProvider entry pattern).
  • atomcode2api (inscripoem) — discovered the api.gitcode.com unsigned path. The upstream calling convention used here (Bearer ~/.atomcode token + User-Agent: atomcode/* + full model name) comes from it.

Disclaimer

This project is provided for educational and research purposes only.

  • This project is not affiliated with, endorsed by, or sponsored by AtomCode, AtomGit, GitCode, or any of their developers or affiliates.
  • The software is provided "AS IS", without warranty of any kind, express or implied. The author(s) shall not be liable for any claim, damages, or other liability arising from its use.
  • Routing around the signed gateway and forwarding CodingPlan quota through an OpenAI-compatible API may violate the AtomCode/GitCode Terms of Service. The user assumes all responsibility for any consequences, including but not limited to account suspension, quota revocation, or legal action.
  • Do not use this project to resell, redistribute, or commercialize access to the CodingPlan service.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages