# Claude Code Action Inputs

> The settings that tell the GitHub Action what Claude should do.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** prompt, claude_args, anthropic_api_key, claude_code_oauth_token

## Think of it like

It is like the boxes on a form. You fill them in, then hand it over.

## Definition

The action inputs are the settings in the step that runs Claude. They sit under the with key. prompt gives Claude a task, so it runs without waiting for @claude. claude_args passes any Claude Code flag, such as --max-turns or --model. anthropic_api_key or claude_code_oauth_token signs Claude in. Others add settings, plugins, a new trigger word or a cloud provider.

## Example

Jack wants a review on every new pull request. He sets prompt to his review skill, and Claude runs it each time with no @claude needed.

## Example code

```yaml
with:
  prompt: "/review"
  claude_args: "--max-turns 5 --model sonnet"
```

A set task and a cap on how many turns it takes.

## Why it matters

With the inputs, the action is not just a helper you call. It can be a job that runs by itself.

## Common mistake

Putting model or max_turns as their own inputs, as the old beta did. In version 1 they go inside claude_args.

## Three principles

- **prompt.** Runs with no mention.
- **claude_args.** Any CLI flag.
- **A sign-in input.** Key or token.

## Related terms

- [Claude Code GitHub Actions](https://learn.benibix.com/term/ai/claude-code-github-actions)
- [@claude Mention](https://learn.benibix.com/term/ai/claude-mention)
- [Non-Interactive Mode](https://learn.benibix.com/term/ai/non-interactive-mode)

![A comment that says @claude starts a workflow. Claude Code runs on the runner and answers with a comment or a pull request.](https://learn.benibix.com/diagrams/ci-github-actions.svg)

---

Source: https://learn.benibix.com/term/ai/claude-code-action-inputs
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
