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

# Quickstart

> Get Arcbeam running and send your first trace in 5 minutes

This guide will get you up and running with Arcbeam in minutes. You'll install the connector, send your first trace, and see it in the dashboard.

## Prerequisites

Before you begin, make sure you have:

* An Arcbeam account
* Python 3.9+
* OpenAI API key (for this example)

## Step 1: Get Your API Key

<Steps>
  <Step title="Log in to Arcbeam">
    Navigate to [platform.arcbeam.ai](https://platform.arcbeam.ai) and sign in with your account.
  </Step>

  <Step title="Create an API key">
    Go to Settings → API Keys and click "Create New Key". Give it a descriptive name like "Development Key".

    <Frame caption="Navigate to Settings → API Keys to create a new key">
      <img src="https://mintcdn.com/arcbeam/xfecCcyP4O9NRpfN/images/quickstart/apikeys.png?fit=max&auto=format&n=xfecCcyP4O9NRpfN&q=85&s=0fd05386864fc4f2304a5df2b0fd9ddc" alt="API Keys settings page showing the create new key button" width="2926" height="1614" data-path="images/quickstart/apikeys.png" />
    </Frame>
  </Step>

  <Step title="Copy your API key">
    Copy the API key and store it securely. You'll need it in the next step.

    <Warning>
      API keys are only shown once. If you lose it, you'll need to create a new one.
    </Warning>

    <Tip>
      Store your API key in a secure password manager or environment variable manager like 1Password or Doppler.
    </Tip>
  </Step>
</Steps>

## Step 2: Install the Arcbeam Connector

<Tabs>
  <Tab title="Python">
    ```bash theme={null}
    pip install arcbeam-connector langchain-openai
    ```
  </Tab>
</Tabs>

## Step 3: Create Your First Traced Application

Create a simple LangChain agent that uses Arcbeam tracing:

<CodeGroup>
  ```python Python theme={null}
  from langchain.agents import create_agent
  from langchain_openai import ChatOpenAI
  from arcbeam_connector.langchain.connector import ArcbeamLangConnector

  # Initialize the Arcbeam connector
  connector = ArcbeamLangConnector(
      base_url="http://platform.arcbeam.ai",  # Or your self-hosted URL
      api_key="your-api-key-here",  # Your Arcbeam API key
  )
  connector.init()

  # Create your model
  model = ChatOpenAI(model="gpt-4o-mini")

  # Define a simple tool
  def get_weather(city: str) -> str:
      """Get weather for a given city."""
      return f"It's always sunny in {city}!"

  # Create the agent with your tools
  agent = create_agent(
      model=model,
      tools=[get_weather],
      system_prompt="You are a helpful assistant",
  )

  # Run the agent - this will be automatically traced!
  result = agent.invoke(
      {"messages": [{"role": "user", "content": "what is the weather in sf"}]},
      config={"callbacks": []}
  )
  print(result["messages"][-1].content)
  ```
</CodeGroup>

<Note>
  Make sure to set your `OPENAI_API_KEY` environment variable before running this code.
</Note>

<Tip>
  The connector automatically captures all LangChain operations without requiring you to modify your existing code beyond the initialization.
</Tip>

## Step 4: Run Your Application

Save the code to a file and run it:

<CodeGroup>
  ```bash Python theme={null}
  export OPENAI_API_KEY=your-openai-key
  python your_app.py
  ```
</CodeGroup>

<Check>
  You should see the agent's response in your terminal, something like: "It's always sunny in San Francisco!"
</Check>

## Step 5: View Your Trace in Arcbeam

<Steps>
  <Step title="Navigate to Projects">
    Go back to Arcbeam and click on "Projects" in the sidebar.
  </Step>

  <Step title="Select Default Project">
    Click on the Default Project.
  </Step>

  <Step title="Find your trace">
    You'll see your trace in the list. Click on it to view the details.

    <Frame caption="Your traces will appear in the Default Project">
      <img src="https://mintcdn.com/arcbeam/xfecCcyP4O9NRpfN/images/quickstart/default-project-traces.png?fit=max&auto=format&n=xfecCcyP4O9NRpfN&q=85&s=2cba0d4a8f64687254ecade2d4c7b0d7" alt="Default project page showing a list of traces" width="2940" height="1082" data-path="images/quickstart/default-project-traces.png" />
    </Frame>
  </Step>

  <Step title="Explore the trace">
    In the trace detail view, you can see:

    * The agent's steps (model calls, tool executions)
    * Input and output for each step
    * Token usage and cost
    * Execution time
    * The complete workflow visualization

    <Frame caption="Trace detail view showing the complete execution flow">
      <img src="https://mintcdn.com/arcbeam/xfecCcyP4O9NRpfN/images/quickstart/default-trace-details.png?fit=max&auto=format&n=xfecCcyP4O9NRpfN&q=85&s=1a0aea5bd1ecf365cb3a255554dcf3d1" alt="Trace details page showing execution steps, timing, and costs" width="2924" height="1584" data-path="images/quickstart/default-trace-details.png" />
    </Frame>
  </Step>
</Steps>

## What's Next?

<Check>
  Congratulations! You've sent your first trace to Arcbeam.
</Check>

Here's what to do next:

<CardGroup cols={2}>
  <Card title="Send More Traces" icon="paper-plane" href="/v0/integrations/ai-frameworks/langchain">
    Learn about advanced connector features like environments and custom metadata
  </Card>

  <Card title="Connect Data Sources" icon="database" href="/v0/setup/add-data-sources">
    Link your vector databases to see which documents are retrieved in traces
  </Card>

  <Card title="Review Traces" icon="magnifying-glass" href="/v0/debugging/find-problematic-traces">
    Learn how to filter, search, and analyze your traces
  </Card>

  <Card title="Create Collections" icon="folder" href="/v0/collaboration/review-traces-together">
    Organize traces for team review and collaboration
  </Card>
</CardGroup>

## Troubleshooting

<AccordionGroup>
  <Accordion title="I don't see my trace in the dashboard">
    * Check that you're using the correct API key
    * Verify your application ran without errors
    * Make sure you called `connector.init()` before any LangChain operations
    * Check your network connection - traces are sent over HTTPS
  </Accordion>

  <Accordion title="I'm getting authentication errors">
    * Verify your API key is correct and hasn't been deleted
    * Make sure you copied the full key including the `sk-` prefix
    * Check that you're connecting to the correct base URL
  </Accordion>

  <Accordion title="The connector isn't capturing my traces">
    * Ensure `connector.init()` is called before any LangChain operations
    * Verify you're using a supported LangChain version (0.1.0+)
    * Check the console for any error messages from the connector
  </Accordion>
</AccordionGroup>

<Info>
  For more help, see the [troubleshooting guide](/v0/deployment/troubleshooting) or contact [support@arcbeam.ai](mailto:support@arcbeam.ai).
</Info>
