---
title: "List projects"
method: GET
path: "/api/project"
tags: ["project"]
---

# List projects

`GET /api/project`

## Request

- Base URL: `https://opencode.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://opencode.ai/api/project`
- Auth: none required

List known projects. Archived projects are excluded unless archived=true.

## Query parameters

- `archived` 'true' | 'false', nullable

## Response `200`

Success

- Project[]
  - `id` string, required
  - `canonical` string, required
  - `vcs` string
  - `name` string
  - `icon` ProjectIcon
    - `url` string
    - `override` string
    - `color` string
  - `commands` ProjectCommands
    - `start` string: Startup script to run when creating a new workspace (worktree)
  - `time` ProjectTime, required
    - `created` integer, required
    - `updated` integer, required
    - `active` integer, required
    - `archived` integer
  - `sandboxes` string[], required

## Other responses

- `400`: InvalidRequestError
- `401`: UnauthorizedError

## Changes

> 50 revisions in range; 1 not diffed.

- **2026-10-25** `7565a68e48f6`: 1 info
  - removed the non-success response with the status `404`

[Operation history](https://skmtc.dev/kaaass/apis/opencode/changes/api/project/get.md)

---

[API](https://skmtc.dev/kaaass/apis/opencode.md) - [All operations](https://skmtc.dev/kaaass/apis/opencode/llms.txt) - [OpenAPI document](https://skmtc.dev/kaaass/apis/opencode/revisions/4e083d954707?raw)
