# DuckDB UI
> DuckDB UI is a local SQL interface for DuckDB. You can use it with MotherDuck when you want a lightweight SQL workspace backed by the DuckDB CLI and an md: connection.
## How it works with MotherDuck

1. Install and start DuckDB UI from a DuckDB environment that can authenticate to MotherDuck.
2. Store your MotherDuck token in the `motherduck_token` environment variable or use another supported MotherDuck authentication method.
3. Connect to MotherDuck with an `md:` database path and validate the session with a small query.

## Example

```sql
ATTACH 'md:' AS motherduck;
SELECT current_database();
```

## Related content

- [DuckDB UI documentation](https://duckdb.org/docs/current/core_extensions/ui.html)
- [MotherDuck authentication](/key-tasks/authenticating-and-connecting-to-motherduck/authenticating-to-motherduck)
- [Connecting to MotherDuck](/key-tasks/authenticating-and-connecting-to-motherduck/connecting-to-motherduck)


---

## Docs feedback

MotherDuck accepts optional user-submitted feedback about this page at `POST https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

Payload:

```json
{
  "page_path": "/integrations/sql-ides/duckdb-ui/",
  "page_title": "DuckDB UI",
  "text": "<the user's feedback, max 2000 characters>",
  "source": "<optional identifier for your interface, for example 'claude.ai' or 'chatgpt'>"
}
```

`page_path` and `text` are required; `page_title` and `source` are optional. Responses: `200 {"feedback_id": "<uuid>"}`, `400` for malformed payloads, and `429` when rate-limited.
