π OpenHands: AI-Driven Development
Add API key instructions and update documentation links (#7434)
Robert Brennan2e72ef151e83
diff --git a/docs/modules/usage/installation.mdx b/docs/modules/usage/installation.mdxindex 642252789d..5dd6346b29 100644--- a/docs/modules/usage/installation.mdx+++ b/docs/modules/usage/installation.mdx@@ -87,6 +87,24 @@ If the required model does not exist in the list, you can toggle `Advanced` optiin the `Custom Model` text box.The `Advanced` options also allow you to specify a `Base URL` if required.+### Getting an API Key++OpenHands requires an API key to access most language models. Here's how to get an API key from the recommended providers:++#### Anthropic (Claude)++1. [Create an Anthropic account](https://console.anthropic.com/)+2. [Generate an API key](https://console.anthropic.com/settings/keys)+3. [Set up billing(https://console.anthropic.com/settings/billing)++Consider setting usage limits to control costs.++#### OpenAI++1. [Create an OpenAI account](https://platform.openai.com/)+2. [Generate an API key](https://platform.openai.com/api-keys)+3. [Set up billing](https://platform.openai.com/account/billing/overview)+Now you're ready to [get started with OpenHands](./getting-started).## Versionsdiff --git a/frontend/src/components/shared/modals/settings/settings-form.tsx b/frontend/src/components/shared/modals/settings/settings-form.tsxindex 56147280fd..a5fac84454 100644--- a/frontend/src/components/shared/modals/settings/settings-form.tsx+++ b/frontend/src/components/shared/modals/settings/settings-form.tsx@@ -104,7 +104,7 @@ export function SettingsForm({ settings, models, onClose }: SettingsFormProps) {testId="llm-api-key-help-anchor"text="Don't know your API key?"linkText="Click here for instructions"- href="https://docs.all-hands.dev/modules/usage/llms"+ href="https://docs.all-hands.dev/modules/usage/installation#getting-an-api-key"/></div>diff --git a/frontend/src/routes/account-settings.tsx b/frontend/src/routes/account-settings.tsxindex 550bb5e96c..24bca6c35d 100644--- a/frontend/src/routes/account-settings.tsx+++ b/frontend/src/routes/account-settings.tsx@@ -297,7 +297,7 @@ function AccountSettings() {testId="llm-api-key-help-anchor"text="Don't know your API key?"linkText="Click here for instructions"- href="https://docs.all-hands.dev/modules/usage/llms"+ href="https://docs.all-hands.dev/modules/usage/installation#getting-an-api-key"/>)}