# Kiwi AI Assistant

Source: https://docs.ops0.com/docs/kiwi

Kiwi is ops0's platform-wide AI assistant. It has live access to your infrastructure context — incidents, vulnerabilities, policies, costs, and projects — and answers questions, explains what's happening, and helps you navigate the platform using plain English.

Kiwi is the home screen of ops0. The root URL (`/`) redirects there automatically after login.

![ops0 Kiwi home screen showing the live briefing, stat tiles, and scenario cards](https://docs.ops0.com/images/kiwi-overview.png)

---

## Interface Layout

The Kiwi screen has three areas:

| Area | Description |
|------|-------------|
| **Left sidebar** | Conversation history — all past Kiwi sessions, searchable, with rename and delete |
| **Main area** | Current conversation — messages, welcome screen when no conversation is active |
| **Input bar** | Message input at the bottom |

---

## Welcome Screen

When no conversation is selected, the welcome screen shows:

### Briefing Card

A live summary of your current infrastructure state:

- **Incidents** — open Kubernetes and IaC incidents
- **Vulnerabilities** — critical/high CVEs detected by Trivy
- **Policy Blocked** — deployments currently blocked by a policy violation
- **Projects** — total IaC projects in the org
- **Oxid Tracked** — resources managed by Oxid backends

These numbers update in real time. Click any signal card to navigate to the relevant section.

### Scenario Cards

Nine pre-built conversation starters covering the most common workflows:

| Card | What it does |
|------|-------------|
| **Provisioning** | Help provisioning new infrastructure with Terraform |
| **Incident** | Investigate an active incident |
| **Cost** | Analyze cloud spending and find optimization opportunities |
| **Compliance** | Check policy status and compliance posture |
| **Drift** | Investigate infrastructure drift between IaC and live state |
| **IaC Review** | Review Terraform code before deployment |
| **Kubernetes** | Debug or manage a Kubernetes cluster |
| **Onboarding** | Get help setting up ops0 for the first time |
| **Security** | Investigate security findings and vulnerabilities |

Click any card to start a new conversation pre-loaded with that context.

### Capability Shortcuts

Quick-access buttons for common tasks:

| Shortcut | Description |
|----------|-------------|
| **IaC** | Jump to IaC projects |
| **Query** | Open the Query Console |
| **Kubernetes** | Open Kubernetes clusters |
| **Compliance** | Open compliance dashboard |
| **Costs** | View cost analysis |
| **Discovery** | Start a discovery scan |

---

## Chatting with Kiwi

Type any question in natural language. Kiwi has context about your organization's infrastructure and can answer questions like:

- *"What incidents are open right now?"*
- *"Which IaC project has the highest cost estimate?"*
- *"Are any of my S3 buckets failing the encryption policy?"*
- *"Show me the Kubernetes clusters with P1 incidents"*
- *"What changed in the last discovery scan?"*

Kiwi responds with markdown-formatted answers. Code blocks, tables, and lists are all rendered inline.

### Keyboard Shortcuts

| Shortcut | Action |
|----------|--------|
| `Enter` | Send message |
| `Shift + Enter` | New line in message |
| `↑` | Recall previous message from history |
| `↓` | Move forward through message history |

---

## Thinking Block

When Kiwi is working through a complex question, it shows a **Thinking** indicator — a collapsible panel that displays Claude's reasoning process in real time.

- While thinking: lines flash through the compact view showing live reasoning
- After responding: the panel collapses and shows "Thought process"
- Click anywhere on the panel to expand the full reasoning

This feature uses Claude's extended thinking capability. The thinking content is not sent back — only the final response is shown in the main conversation.

---

## Sensitive Data Detection

Before sending a message, Kiwi scans the input for sensitive data patterns — API keys, passwords, private keys, credit card numbers, and other PII.

If sensitive data is detected:

1. A warning modal appears listing the detected items
2. You can choose to **Redact** the sensitive values before sending (replaces them with `[REDACTED]`)
3. Or **Send Anyway** if you have reviewed the content and it is safe

This protects against accidentally sending credentials or personal data to the AI model.

---

## Conversation Management

### Starting a New Conversation

Click the **New Chat** button (pencil icon) at the top of the sidebar, or click any scenario card on the welcome screen.

### Browsing History

All past conversations appear in the left sidebar. The sidebar shows the conversation title (auto-generated from the first message) and age. Use the search button to search across all conversation titles.

### Renaming a Conversation

Click the **⋮** menu on any conversation → **Rename** → type a new title → press Enter.

### Deleting a Conversation

Click the **⋮** menu → **Delete** → confirm. Deletion is permanent and cannot be undone.

---

## What Kiwi Can and Cannot Do

**Kiwi can:**
- Answer questions about your live infrastructure state
- Navigate you to the right section of ops0
- Explain incidents, policies, and compliance findings
- Help you understand costs and optimization opportunities
- Generate IaC code and Terraform plans via the IaC editor
- Analyze discovery results and drift

**Kiwi cannot:**
- Make changes to your infrastructure directly (it navigates you to the right place)
- Access external systems outside of ops0
- Remember context between separate conversations

---

## Related

- [IaC Editor](https://docs.ops0.com/docs/iac/editor): AI-powered Terraform code editor with full deployment workflow.

- [Query Console](https://docs.ops0.com/docs/query-console): SQL-like query interface for searching across all resources.

- [API Configuration](https://docs.ops0.com/docs/settings/api-configuration): Configure the Claude API key that powers Kiwi.
