Warning
DEPRECATED: This plugin has been deprecated and its features have been consolidated into llm-anthropic. Please use llm-anthropic for access to Claude 3, 3.5, and 3.7 models with full support for system prompts, Vision, tools, async execution, and thinking models.
LLM access to Claude 3 by Anthropic
Install this plugin in the same environment as LLM.
llm install llm-claude-3First, set an API key for Claude 3:
llm keys set claude
# Paste key hereRun llm models to list the models, and llm models --options to include a list of their options.
Run prompts like this:
llm -m claude-3.5-sonnet 'Fun facts about pelicans'
llm -m claude-3-opus 'Fun facts about squirrels'
llm -m claude-3-sonnet 'Fun facts about walruses'
llm -m claude-3-haiku 'Fun facts about armadillos'To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-claude-3
python3 -m venv venv
source venv/bin/activateNow install the dependencies and test dependencies:
llm install -e '.[test]'To run the tests:
pytest