Skip to content

support other anthropic-compatible endpoints #41

@lemyx

Description

@lemyx

Dear author,

Thanks for your great work, the following is my configuration for claude-code-ide, where the compatible claude-code endpoint from Kimi-k2 is used.

However, I haven't found the exposed setting options for agent-shell in the file agent-shell-anthropic.el, so will the relevant configurations be supported?

(use-package claude-code-ide
  :ensure nil
  :load-path "site-lisp/claude-code-ide"
  :commands
  (claude-code-ide-menu)
  :bind
  ("C-c C-'" . claude-code-ide-menu)
  :config

  ; https://docs.anthropic.com/en/docs/claude-code/settings#environment-variables
  ; https://platform.moonshot.cn/docs/guide/agent-support#%E8%8E%B7%E5%8F%96-api-key
  (setenv "ANTHROPIC_BASE_URL" "https://api.moonshot.cn/anthropic/")
  (setenv "ANTHROPIC_AUTH_TOKEN" (read-llm-api-key (moonshot-api-key-path)))
  (setenv "ANTHROPIC_MODEL" preferred-kimi-model)
  (setenv "ANTHROPIC_SMALL_FAST_MODEL" preferred-kimi-model)

  (setq claude-code-ide-cli-path "/usr/local/bin/claude"
        claude-code-ide-terminal-backend 'eat
	claude-code-ide-focus-on-open nil
	claude-code-ide-focus-claude-after-ediff t
	claude-code-ide-show-claude-window-in-ediff t
	)
  ;; (setq claude-code-ide-cli-debug t)
  ;; (setq claude-code-ide-debug t)
  (claude-code-ide-emacs-tools-setup)
  )

Btw, possible related thread: zed-industries/zed#37469

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions