---
title: "Kernel Token"
method: POST
path: "/api/auth/kernel-token"
---

# Kernel Token

`POST /api/auth/kernel-token`

## Request

- Base URL: `https://api.omicos.cn` (the document declares no server; this is the origin it was published from)
- URL: `https://api.omicos.cn/api/auth/kernel-token`
- Auth: none declared

A token for code running in the user's local kernels. omicos-core puts
it in the kernel environment instead of the user's session token: it is
accepted only by `current_user_or_kernel` routes (marker scoring), never by
approvals, wallet, account or process routes. A kernel token cannot mint
another one (`current_user_or_process` rejects it).

## Headers

- `authorization` string, nullable
- `x-omicos-device` string, nullable
- `x-omicos-device-kind` string, nullable
- `x-omicos-device-name` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-23** `42ce180a8cda`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omicos/apis/omicos-server/changes/api/auth/kernel-token/post.md)

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc.dev/omicos/apis/omicos-server/revisions/42ce180a8cda?raw)
