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

# Use Znift with AI Agents

> Manage your Znift tasks from Claude, Cursor, OpenClaw, ChatGPT, and other AI tools.

Znift's public API is designed for AI agents. You can create, complete, move, search, and analyze your tasks without leaving your AI tool.

## Integration Options

Choose the method that works best for your setup:

| Method                       | Works With                                              | Setup Time | Capabilities                        |
| ---------------------------- | ------------------------------------------------------- | ---------- | ----------------------------------- |
| **MCP Server** (recommended) | Claude Desktop, Claude Code, Cursor, Windsurf, OpenClaw | 2 minutes  | Full read/write access to all tools |
| **Claude Code Skill**        | Claude Code                                             | 1 minute   | Full access via curl commands       |
| **Custom GPT**               | ChatGPT                                                 | 5 minutes  | Full access via OpenAPI Actions     |

## Prerequisites

All methods require a Znift API key:

1. Go to [Profile > API Keys](https://znift.com/dashboard/api-keys) in the Znift app
2. Click **Create API Key**
3. Copy the key (starts with `znift_`)

<Warning>
  Keep your API key secret. Do not share it or commit it to version control.
</Warning>

## Quick Start

<CardGroup cols={3}>
  <Card title="MCP Server" icon="plug" href="/ai-agents/mcp-setup">
    Connect any MCP-compatible AI tool to Znift.
  </Card>

  <Card title="Claude Code Skill" icon="terminal" href="/ai-agents/claude-skill">
    Manage tasks directly from Claude Code via curl.
  </Card>

  <Card title="ChatGPT" icon="message" href="/ai-agents/chatgpt">
    Create a Custom GPT with Znift Actions.
  </Card>
</CardGroup>

## What You Can Do

Once connected, your AI agent can:

* **Daily briefing** — "What do I have to do today?" returns overdue, pending, and completed tasks with your streak
* **Create tasks** — "Add a task for tomorrow: review PR" with optional priority and due time
* **Log completed work** — "Log that I merged 3 PRs" creates a task already marked as done
* **Complete tasks** — "Mark the deployment task as done"
* **Reschedule** — "Push the standup prep to Friday"
* **Search** — "Find anything related to the migration"
* **Weekly review** — "How productive was I this week?" with completion stats and trends
* **Archive management** — Archive completed tasks, restore them, or permanently delete

## Example Workflows

### Morning briefing (Claude Desktop / Cursor)

> "What's on my plate today?"

Your AI agent calls the `get_dashboard` tool and returns your overdue tasks, today's pending items, completed count, and current streak — all in one response.

### End-of-day log (Claude Code)

> "Log that I shipped the auth refactor, reviewed 2 PRs, and fixed the checkout bug"

Creates three completed tasks for today with a single prompt. No need to open the app.

### Weekly review (ChatGPT)

> "How productive was I this week? Show me the stats."

Calls `get_analytics` with a 7-day range and returns completion rate, priority breakdown, daily stats, and streak information.
