---
title: "Get server info"
method: GET
path: "/api/info"
tags: ["server"]
---

# Get server info

`GET /api/info`

## Request

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

Return the server identity, connection URLs, paths, and readiness status.

## Response `200`

ServerInfo

- ServerInfo
  - `version` string, required
  - `pid` integer, required
  - `hostname` string, nullable
  - `urls` string[], required
  - `paths` object, required
    - `tmp` string, required
  - `capabilities` object, nullable
    - `persistentPty` boolean, nullable

## Other responses

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

## Changes

> 50 revisions in range; 1 not diffed.

- **2026-10-26** `7c52b3e59fc5`: 1 info
  - added the optional property `hostname` to the response with the `200` status

[Operation history](https://skmtc.dev/kaaass/apis/opencode/changes/api/info/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)
