# Claude Inline

> >

- **Type:** Skill
- **Install:** `agentstack add skill-ccppvv-agent-skills-claude-inline`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ccppvv](https://agentstack.voostack.com/s/ccppvv)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ccppvv](https://github.com/ccppvv)
- **Source:** https://github.com/ccppvv/agent-skills/tree/main/claude-inline

## Install

```sh
agentstack add skill-ccppvv-agent-skills-claude-inline
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Claude Inline

Launch Claude Code CLI with custom `ANTHROPIC_BASE_URL` and `ANTHROPIC_API_KEY`
environment variables. Useful for connecting to custom endpoints (OpenRouter,
local proxies, etc.).

## Configuration

Store defaults in `~/.workbuddy/skills/claude-inline/config.json`:

```json
{
  "baseurl": "https://openrouter.ai/api/v1",
  "apikey": "sk-...",
  "model": "anthropic/claude-3-5-sonnet"
}
```

- `baseurl` — custom API base URL
- `apikey` — API key for the endpoint
- `model` — (optional) model to use via `ANTHROPIC_MODEL`

If config file exists, use its values as defaults. CLI arguments override config values.

## Usage

### Parse user input

Accept baseurl and apikey from:
1. Explicit arguments in the user's message (e.g., `baseurl=xxx apikey=xxx`)
2. The config file at `~/.workbuddy/skills/claude-inline/config.json`
3. Ask the user if neither is available

### Print the launch command

Construct and print the command. **Do NOT execute it** — only print for the user.

**Interactive mode (default):**
```bash
ANTHROPIC_BASE_URL="" ANTHROPIC_API_KEY="" claude
```

**Non-interactive mode (with `-p` flag):**
```bash
ANTHROPIC_BASE_URL="" ANTHROPIC_API_KEY="" claude -p ""
```

**With model override:**
```bash
ANTHROPIC_BASE_URL="" ANTHROPIC_API_KEY="" ANTHROPIC_MODEL="" claude
```

### Save config (optional)

If the user provides baseurl/apikey and it differs from the config, ask if they
want to save it as the new default. Write to the config file if confirmed.

## Notes

- Claude Code CLI must be installed separately (`npm install -g @anthropic-ai/claude-code`)
- The `ANTHROPIC_BASE_URL` must be a fully qualified URL (include `https://`)
- For OpenRouter: `ANTHROPIC_MODEL` should be set to the model ID (e.g., `anthropic/claude-3-5-sonnet-20241022`)
- Always wrap URL and key in double quotes to handle special characters

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ccppvv](https://github.com/ccppvv)
- **Source:** [ccppvv/agent-skills](https://github.com/ccppvv/agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ccppvv-agent-skills-claude-inline
- Seller: https://agentstack.voostack.com/s/ccppvv
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
