> ## Documentation Index
> Fetch the complete documentation index at: https://docs-v1.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LangDB

[LangDB](https://langdb.ai/) is an AI Gateway for seamless access to 350+ LLMs. Secure, govern, and optimize AI Traffic across LLMs using OpenAI-Compatible APIs.

For detailed integration instructions, see the [LangDB Agno documentation](https://docs.langdb.ai/getting-started/working-with-agent-frameworks/working-with-agno).

## Authentication

Set your `LANGDB_API_KEY` environment variable. Get your key from [here](https://app.langdb.ai/settings/api_keys).

<CodeGroup>
  ```bash Mac theme={null}
  export LANGDB_API_KEY=***
  export LANGDB_PROJECT_ID=***

  ```

  ```bash Windows theme={null}
  setx LANGDB_API_KEY ***
  setx LANGDB_PROJECT_ID ***
  ```
</CodeGroup>

## Example

Use `LangDB` with your `Agent`:

<CodeGroup>
  ```python agent.py theme={null}
  from agno.agent import Agent, RunResponse
  from agno.models.langdb import LangDB

  agent = Agent(
      model=LangDB(id="gpt-4o"),
      markdown=True
  )

  # Print the response in the terminal
  agent.print_response("Share a 2 sentence horror story.")

  ```
</CodeGroup>

## Params

<Snippet file="model-langdb-params.mdx" />

`LangDB` also supports the params of [OpenAI](/reference/models/openai).
