By default, Sage uses Anthropic’s Claude model as the underlying LLM. Grab an API key from your account settings and export it to an environment variable:
Copy
Ask AI
export ANTHROPIC_API_KEY=...
If your GitHub repository is private, then you will also need a personal access token. This is not necessary for public repositories.
You are now ready to chat with your codebase. Simply pass the repository name to the sage-chat command, in the repo-org/repo-name format. For instance, in order to chat with Hugging Face’s Transformers library:
Copy
Ask AI
sage-chat huggingface/transformers
This will bring up a Gradio UI that runs on localhost. Happy chatting!