Prerequisites
- An Anthropic Console account
- An API key
Call the API
1
Set your API key
Get your API key from the Claude Console and set it as an environment variable:
2
Make your first API call
Run this command to create a simple web search assistant:Example output: