@ondeinference / ed Mirror · read-only
Fork 0

Read-only mirror of github.com/ondeinference/ed.

Mirrored from https://github.com/ondeinference/ed.git

Synced Nov 23, 01:00 UTC

main
rs 17 lines 853 Bytes
Raw
1 //! Claude as an `ed-acp` agent, for hosts that run agents in process.
2 //!
3 //! Anthropic serves the OpenAI chat-completions API at `https://api.anthropic.com/v1/`, with
4 //! streaming and tool calls, so `ed-acp`'s own client, workspace tools, permissions and
5 //! `fs/*` work unchanged. [`ClaudeAuth`] supplies the endpoint, the user's API key and a model
6 //! through [`AuthProvider::llm_config`]. The environment is never read: the key and model come
7 //! from the file [`credentials`] keeps, so nothing collides with `OPENAI_*` or `ONDE_*`.
8 //!
9 //! This is the API-key mode only. A Claude.ai subscription goes through Anthropic's own
10 //! `claude` CLI, which a host runs as an external agent instead.
11
12 pub mod auth;
13 pub mod credentials;
14 pub mod profile;
15
16 pub use auth::{API_KEY_NEEDED, ClaudeAuth, DEFAULT_MODEL, MODELS};
17 pub use profile::{Claude, INFO};