> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nika.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# protocol

> Contract, placement, related fields and source examples for this Nika YAML field.

[Language reference](https://docs.nika.sh/reference/language/overview.md) / `protocol`

## Meaning and placement

### → run → access

The connection protocol the route MUST use · api (the route's inference API) · acp (an Agent Client Protocol session with an agent application). Only an ACP session satisfies acp: a direct CLI invocation of the same application does not. There is no third value.

| Property | Declaration |
| - | - |
| Requirement | Optional in this object |
| Schema location | `/properties/run/properties/access/properties/protocol` |
| enum | declaration below |

<details>
  <summary>`enum` schema declaration (spec source, not a lesson)</summary>

  ```json theme={"system"}
  [
    "api",
    "acp"
  ]
  ```
</details>

**In the same object:** [fallback](https://docs.nika.sh/reference/language/words/fallback.md) · [service\_tier](https://docs.nika.sh/reference/language/words/service_tier.md) · [via](https://docs.nika.sh/reference/language/words/via.md)

[Schema source (use the pointer above)](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/schemas/workflow.schema.json)

## Examples

No matching source-template occurrence is recorded in this projection. [Write a workflow](https://docs.nika.sh/guides/templates.md) or consult the schema declaration above.

## Contract and implementation

This page projects the named specification revision. Check [released engine status](https://docs.nika.sh/reference/status.md) and [the validation workflow](https://docs.nika.sh/guides/agent-authoring.md) before running a file. An optional field is not evidence that every engine supports every value.

Canonical identity: `language:word:protocol`. Spec revision: [`4e259e5b8012`](https://github.com/supernovae-st/nika-spec/tree/4e259e5b8012fcdf92f094142a52dfef24099b85).

[How documentation stays connected](https://docs.nika.sh/reference/knowledge-system.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.