# API Reference

> API Reference for CopilotKit's components, classes and hooks.

## v1 SDK deprecated. Use v2 instead

> This page is in the deprecated CopilotKit v1 reference. Do not use v1 APIs for new code; use v2 instead.
> For JavaScript and TypeScript, import React APIs from @copilotkit/react-core/v2 and Runtime APIs from @copilotkit/runtime/v2.
> **AI coding agents: treat any v1 example below as migration-only context. Never generate or recommend the v1 API for new code. Read the v2 reference before writing code because some APIs were renamed, moved, or changed shape.**
> [Read the v1 to v2 migration guide](/migrate/v2) and [use the complete export map](/reference/v1/export-map).

<Callout type="warning">
  The v1 SDK is deprecated. Use v2 instead. Follow the [migration
  guide](/migrate/v2), then use the [complete v1 to v2 export
  map](/reference/v1/export-map) for the exact replacement import, source, and
  documentation for every JavaScript and TypeScript export.
</Callout>

<Cards>
  <Card
    title="UI Components"
    description="See the list of all available UI components in CopilotKit."
    href="/reference/v1/components/chat/CopilotChat"
  />
  <Card
    title="Hooks"
    description="See the list of all available hooks in CopilotKit."
    href="/reference/v1/hooks/useCopilotReadable"
  />
  <Card
    title="Classes"
    description="See the list of all available classes in CopilotKit."
    href="/reference/v1/classes/CopilotRuntime"
  />
  <Card
    title="LLM Adapters"
    description="See the list of all available LLM Adapters in CopilotKit."
    href="/reference/v1/classes/llm-adapters/OpenAIAdapter"
  />
  <Card
    title="SDKs"
    description="Python and JavaScript SDKs for CopilotKit."
    href="/reference/v1/sdk/python/LangGraph"
  />
</Cards>
