---
title: "noket upstream add"
description: "Add an upstream; edit it when the name already exists"
---

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

# noket upstream add

Add an upstream; edit it when the name already exists

Part of [`noket upstream`](https://docs.noket.dev/reference/cli/upstream/).

## Usage

```sh
noket upstream add [flags]
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--api-key-stdin` | `bool` | — | read one API key line from stdin |
| `--model` | `string array` | — | model id to expose (repeatable) |
| `--name` | `string` | — | Upstream name |
| `--protocol` | `string` | `openai` | openai or anthropic |
| `--url` | `string` | — | upstream base URL (with or without /v1) |

## Inherited flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `-v`, `--verbose` | `bool` | — | enable debug logging |

Source: https://docs.noket.dev/reference/cli/upstream/add/index.mdx
