posit-dev / posit-dev/positron

Posit Assistant: support Anthropic-compatible subscriptions (Z.ai GLM Coding Plan, Moonshot Kimi for Coding)Posit Assistant: support Anthropic-compatible subscriptions (Z.ai GLM Coding Plan, Moonshot Kimi for Coding)

Open
#15,973 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

info needed
Dominant language
TypeScript
Stars
4.3k
Forks
184
Avg merge
1d 9h
Merged PRs (30d)
195

Description

Description

Posit Assistant's experimental Custom Provider currently only supports OpenAI-compatible endpoints. Two widely used AI coding subscriptions — the Z.ai GLM Coding Plan (Zhipu) and Moonshot Kimi for Coding — expose Anthropic-compatible endpoints, so today they cannot be connected to Posit Assistant at all.

Problem
  • Both plans provide official Anthropic Messages API-compatible endpoints:
  • They are already officially supported by agentic coding tools such as Claude Code, OpenCode, and Cline, and have large and fast-growing user bases (especially, but not only, in China).
  • In Positron, the built-in Anthropic provider entry only points to Anthropic itself, and the Custom Provider only speaks the OpenAI protocol. Users whose primary AI subscription is GLM or Kimi therefore have no way to use their plan inside Positron, which pushes this group toward other IDEs.
Proposed solution

Any one of these would help:

  1. Extend the Custom Provider to also support the Anthropic Messages API (custom base URL + API key). This single change would make both plans immediately usable, along with any other Anthropic-compatible provider.
  2. Add first-class provider entries for Z.ai GLM Coding Plan and Moonshot Kimi for Coding.
  3. Longer term, consider subscription/OAuth-style sign-in for these plans, similar to how GitHub Copilot is handled.
Additional context

I'm happy to test preview builds and report compatibility results. For reference, similar requests exist in other coding tools (e.g. anomalyco/opencode#2431 for the GLM Coding Plan).

Thanks for building a great IDE for data science!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Start by locating Positron Assistant's experimental Custom Provider and its OpenAI-compatible request path, then compare it with the Anthropic Messages API requirements for the listed endpoints. Done means an agreed provider approach supports the stated Z.ai and Moonshot use cases and has compatibility coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.