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

# Overview

> Install, authenticate, and choose between the terminal and programmatic interfaces

export const CopyPageButton = () => {
  if (typeof window !== 'undefined') {
    setTimeout(function () {
      if (document.getElementById('ck-tools')) return;
      var anchor = document.getElementById('content-area') || document.querySelector('.mdx-content');
      if (!anchor) return;
      if (!document.getElementById('ck-style')) {
        var s = document.createElement('style');
        s.id = 'ck-style';
        s.textContent = '#ck-tools{position:absolute;top:6px;right:0;z-index:100;font-family:inherit;}' + '.ck-row{display:inline-flex;align-items:stretch;border:1px solid rgba(0,0,0,0.15);border-radius:8px;overflow:hidden;background:#fff;}' + ':root.dark .ck-row{background:rgba(255,255,255,0.06);border-color:rgba(255,255,255,0.12);}' + '.ck-btn{padding:5px 12px;border:none;background:none;cursor:pointer;font-size:13px;font-weight:500;font-family:inherit;color:#374151;}' + ':root.dark .ck-btn{color:#d1d5db;}' + '.ck-btn:hover{background:rgba(0,0,0,0.04);}' + ':root.dark .ck-btn:hover{background:rgba(255,255,255,0.06);}' + '.ck-chevron{padding:5px 8px;border:none;background:none;cursor:pointer;font-size:14px;font-family:inherit;color:#374151;}' + ':root.dark .ck-chevron{color:#d1d5db;}' + '.ck-chevron:hover{background:rgba(0,0,0,0.04);}' + ':root.dark .ck-chevron:hover{background:rgba(255,255,255,0.06);}' + '.ck-divider{width:1px;background:rgba(0,0,0,0.12);flex-shrink:0;}' + ':root.dark .ck-divider{background:rgba(255,255,255,0.12);}' + '.ck-dd{position:absolute;top:calc(100% + 4px);right:0;min-width:180px;background:#fff;border:1px solid rgba(0,0,0,0.12);border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,0.1);padding:4px;display:none;z-index:200;}' + ':root.dark .ck-dd{background:#1f2937;border-color:rgba(255,255,255,0.1);box-shadow:0 4px 16px rgba(0,0,0,0.35);}' + '.ck-item{display:block;width:100%;padding:7px 12px;border:none;background:none;border-radius:6px;cursor:pointer;font-size:13px;font-family:inherit;text-align:left;color:#374151;}' + ':root.dark .ck-item{color:#d1d5db;}' + '.ck-item:hover{background:rgba(0,0,0,0.05);}' + ':root.dark .ck-item:hover{background:rgba(255,255,255,0.07);}';
        document.head.appendChild(s);
      }
      var wrap = document.createElement('div');
      wrap.id = 'ck-tools';
      var row = document.createElement('div');
      row.className = 'ck-row';
      var mainBtn = document.createElement('button');
      mainBtn.className = 'ck-btn';
      mainBtn.textContent = 'Copy page';
      var divider = document.createElement('span');
      divider.className = 'ck-divider';
      var chevron = document.createElement('button');
      chevron.className = 'ck-chevron';
      chevron.textContent = '▾';
      var dd = document.createElement('div');
      dd.className = 'ck-dd';
      function closeDD() {
        dd.style.display = 'none';
      }
      function openDD() {
        dd.style.display = 'block';
      }
      chevron.onclick = function (e) {
        e.stopPropagation();
        if (dd.style.display === 'block') {
          closeDD();
        } else {
          openDD();
        }
      };
      document.addEventListener('click', function (e) {
        if (!e.target.closest('#ck-tools')) {
          closeDD();
        }
      });
      document.addEventListener('keydown', function (e) {
        if (e.key === 'Escape') {
          closeDD();
        }
      });
      function makeItem(label, fn) {
        var b = document.createElement('button');
        b.className = 'ck-item';
        b.textContent = label;
        b.onclick = function () {
          fn();
          closeDD();
        };
        return b;
      }
      function getMarkdown() {
        var walk = function (node) {
          if (!node) return '';
          if (node.nodeType === 3) return node.textContent || '';
          if (node.nodeType !== 1) return '';
          var tag = node.tagName.toLowerCase();
          var skip = ['script', 'style', 'svg', 'noscript', 'button', 'iframe'];
          if (skip.indexOf(tag) !== -1) return '';
          if (node.id === 'ck-tools') return '';
          var ch = Array.from(node.childNodes).map(walk).join('');
          if (tag === 'h1') return '\n# ' + ch.trim() + '\n\n';
          if (tag === 'h2') return '\n## ' + ch.trim() + '\n\n';
          if (tag === 'h3') return '\n### ' + ch.trim() + '\n\n';
          if (tag === 'p') return '\n' + ch.trim() + '\n\n';
          if (tag === 'pre') return '\n```\n' + node.textContent.trim() + '\n```\n\n';
          if (tag === 'li') return '- ' + ch.trim() + '\n';
          if (tag === 'code') return '`' + ch.trim() + '`';
          return ch;
        };
        var content = document.querySelector('.mdx-content') || document.getElementById('content-area') || document.body;
        return walk(content).replace(/\n\n\n+/g, '\n\n').trim();
      }
      function copyMd() {
        var md = getMarkdown();
        navigator.clipboard.writeText(md).then(function () {
          mainBtn.textContent = 'Copied!';
          setTimeout(function () {
            mainBtn.textContent = 'Copy page';
          }, 2000);
        });
      }
      function viewMd() {
        var md = getMarkdown();
        var safe = md.split('&').join('&amp;').split('<').join('&lt;').split('>').join('&gt;');
        var html = '<!DOCTYPE html><html><head><meta charset="utf-8"><style>body{font-family:monospace;max-width:860px;margin:40px auto;padding:0 24px;line-height:1.7;white-space:pre-wrap;word-wrap:break-word}</style></head><body>' + safe + '</body></html>';
        window.open(URL.createObjectURL(new Blob([html], {
          type: 'text/html'
        })), '_blank');
      }
      function openClaude() {
        var prompt = 'Can you read this Cekura docs page ' + window.location.href + ' so I can ask you questions?';
        window.open('https://claude.ai/new?q=' + encodeURIComponent(prompt), '_blank');
      }
      mainBtn.onclick = copyMd;
      dd.appendChild(makeItem('Copy page', copyMd));
      dd.appendChild(makeItem('View as Markdown', viewMd));
      dd.appendChild(makeItem('Open in Claude', openClaude));
      row.appendChild(mainBtn);
      row.appendChild(divider);
      row.appendChild(chevron);
      wrap.appendChild(row);
      wrap.appendChild(dd);
      anchor.style.position = 'relative';
      anchor.insertBefore(wrap, anchor.firstChild);
    }, 50);
  }
  return null;
};

<CopyPageButton />

<Note>
  **One package, two interfaces.** `pip install cekura` ships both the **CLI** for terminal workflows and a **Python SDK** for programmatic access. Same auth, same API surface, same data.
</Note>

## When to use which

<CardGroup cols={2}>
  <Card title="CLI" icon="terminal" href="/cli-sdk/cli" color="#A6A7EA">
    Best for one-off commands, shell scripts, CI pipelines, and quickly inspecting your workspace. Tab-complete, table output, JSON mode for piping.
  </Card>

  <Card title="Python SDK" icon="python" href="/cli-sdk/sdk" color="#A6A7EA">
    Best for application code, custom automation, batch jobs, and integrating Cekura into existing Python workflows. Sync and async clients available.
  </Card>
</CardGroup>

## Installation

Install the package with the extras you need:

<Tabs>
  <Tab title="Both (recommended)">
    ```bash theme={null}
    pip install cekura
    ```

    Includes both CLI and SDK plus integrations for LiveKit and Pipecat.
  </Tab>

  <Tab title="CLI only">
    ```bash theme={null}
    pip install "cekura[cli]"
    ```

    The `cekura` command is now on your `PATH`. Verify:

    ```bash theme={null}
    cekura version
    ```
  </Tab>

  <Tab title="SDK only">
    ```bash theme={null}
    pip install "cekura[sdk]"
    ```

    Import in Python:

    ```python theme={null}
    from cekura import Cekura, AsyncCekura
    ```
  </Tab>
</Tabs>

**Requirements:** Python 3.9+. Linux, macOS, and Windows supported.

## Authentication

The CLI and SDK accept either OAuth (browser sign-in) or an API key. **OAuth is recommended for individual use.**

<Tabs>
  <Tab title="OAuth (recommended)">
    One-time browser sign-in. Tokens are stored locally and refreshed automatically.

    ```bash theme={null}
    cekura auth login
    ```

    Verify:

    ```bash theme={null}
    cekura auth whoami
    ```

    Sign out:

    ```bash theme={null}
    cekura auth logout
    ```

    The same OAuth session is used by the SDK when no API key is set.
  </Tab>

  <Tab title="API key">
    Generate a key in the [dashboard](https://dashboard.cekura.ai) under **Settings → API Keys**, then either store it via the CLI or set it in the environment.

    **Via CLI** (writes to the config file):

    ```bash theme={null}
    cekura auth login --api-key YOUR_API_KEY
    ```

    **Via environment variable** (preferred for CI):

    ```bash theme={null}
    export CEKURA_API_KEY=YOUR_API_KEY
    ```

    The SDK picks up `CEKURA_API_KEY` automatically when no key is passed:

    ```python theme={null}
    from cekura import Cekura

    # Reads CEKURA_API_KEY from env
    client = Cekura()

    # Or pass explicitly
    client = Cekura(api_key="YOUR_API_KEY")
    ```
  </Tab>
</Tabs>

## Configuration precedence

Both the CLI and SDK resolve configuration in this order (first match wins):

1. **Explicit argument** — `Cekura(api_key=...)` or `--api-key` flag
2. **Environment variable** — `CEKURA_API_KEY`, `CEKURA_API_URL`
3. **Config file** — `~/.cekura/config.toml` (managed by `cekura config set` / `cekura auth login`)
4. **Defaults** — `https://api.cekura.ai`

Inspect the active config:

```bash theme={null}
cekura config get        # all values
cekura config path       # config file location
```

<Tip>
  On first sign-in (`cekura auth login`), the first organization and project the CLI sees on your account are saved as defaults automatically. You only need to override these when you want a different default — typically because you belong to multiple organizations or projects.
</Tip>

## Next steps

<CardGroup cols={2}>
  <Card title="CLI guide" icon="terminal" href="/cli-sdk/cli">
    Command groups, JSON output, scripting patterns, and common workflows.
  </Card>

  <Card title="Python SDK guide" icon="python" href="/cli-sdk/sdk">
    Sync and async clients, resource map, and end-to-end examples.
  </Card>

  <Card title="API Reference" icon="book" href="/api-reference">
    Full endpoint documentation for every resource the CLI and SDK expose.
  </Card>

  <Card title="Model Context Protocol" icon="shield-halved" href="/mcp/overview">
    Use the same Cekura API surface from your AI assistant (Claude, Cursor, etc.).
  </Card>
</CardGroup>
