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

# Quick Start

> Install the Literal AI client and get your API key

<CardGroup cols={2}>
  <Card title="Instrument your Code" icon="code" color="#FF0581" href="/get-started/quick-start#logging-llm-generations-agent-runs-or-conversation-threads">
    Install the Literal AI SDK and get your API key.
  </Card>

  <Card title="Create your first Prompt from the Playground" icon="sparkles" color="#2eb88a" href="/guides/playground">
    Create, version and A/B test your prompts in the Prompt Playground.
  </Card>
</CardGroup>

## Logging LLM Generations, Agent Runs or Conversation Threads

<Steps>
  <Step title="Install the Literal AI package">
    <CodeGroup>
      ```shell Python theme={null}
      pip install literalai
      ```

      ```shell TypeScript theme={null}
      npm i @literalai/client
      ```
    </CodeGroup>
  </Step>

  <Step title="Instantiate the Literal AI client">
    <CodeGroup>
      ```python Python theme={null}
      import os
      from literalai import LiteralClient

      # Not compatible with gunicorn's --preload flag
      literalai_client = LiteralClient(api_key=os.getenv("LITERAL_API_KEY")) # This is the default and can be omitted
      ```

      ```typescript TypeScript theme={null}
      import { LiteralClient } from '@literalai/client';

      const literalAiClient = new LiteralClient({apiKey: process.env["LITERAL_API_KEY"]}); // This is the default and can be omitted

      ```
    </CodeGroup>
  </Step>

  <Step title="Get your Literal AI API Key">
    Go to your [project page](https://cloud.getliteral.ai) and click on the **Settings** tab. You will find your API key in the **API Key** section.

    <Frame caption="Copy your API key">
      <img src="https://mintcdn.com/chainlit-5/SattO4WPsa_7pLDy/images/api_key.png?fit=max&auto=format&n=SattO4WPsa_7pLDy&q=85&s=8a8e0a1bf94d8cd3bf2d61b85069abb2" alt="Literal AI API key" width="2858" height="796" data-path="images/api_key.png" />
    </Frame>
  </Step>
</Steps>

## Start logging LLM generations and agent runs

Literal AI provides

1. low-level SDKs in Python and TypeScript
2. integrations with LLM providers (OpenAI, etc.) and AI frameworks (LangChain, LlamaIndex, Vercel AI SDK, etc.)

<CardGroup cols={2}>
  <Card title="Logging" icon="list-tree" color="#2eb88a" href="/guides/logs">
    Learn how to instrument your code with the Literal AI SDK.
  </Card>

  <Card title="Integrations" icon="gears" color="#FF0581" href="/integrations">
    Browse the list of integrations available with Literal AI.
  </Card>
</CardGroup>
