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

# algolia agentstudio providers create

> Create an Agent Studio LLM provider.

```txt Usage theme={"system"}
algolia agentstudio providers create [flags]
```

## Examples

Create an Anthropic provider:

```sh icon=square-terminal theme={"system"}
algolia agentstudio providers create --json '{"name":"anthropic-prod","providerName":"anthropic","input":{"apiKey":"<api-key>"}}'
```

Create an OpenAI provider:

```sh icon=square-terminal theme={"system"}
algolia agentstudio providers create --json '{"name":"openai-prod","providerName":"openai","input":{"apiKey":"<api-key>"}}'
```

## Flags

<ParamField body="--json">
  Provider JSON object (name, providerName, input)
</ParamField>

## Output formatting flags

<ParamField body="--allow-missing-template-keys">
  If true, ignore errors in templates due to missing fields or map keys. This only applies to golang and jsonpath output formats.
</ParamField>

<ParamField body="-o, --output">
  Output format. One of: (json, jsonl, ndjson, jsonpath, jsonpath-as-json, jsonpath-file).
</ParamField>

<ParamField body="--template">
  Template string or path to a template file to use when --output=jsonpath, --output=jsonpath-file.
</ParamField>
