# Try Claude Code in a browser sandbox

Anthropic's agentic coding CLI

Source: https://www.agentclash.dev/try/claude-code
Markdown export: https://www.agentclash.dev/md/try/claude-code
Session limit: 10 minutes

A page visit does not create a sandbox. Starting a disposable session requires an explicit action on the HTML page.

## Suggested commands

- **Show version**: `claude --version`
- **Start Claude Code**: `claude`
- **Make a file to work on**: `printf 'def add(a, b):\n    return a + b\n' > math.py && cat math.py`

## Authentication

Sign in with your own Claude account (Pro/Max) or an Anthropic API key. Credentials live only in this disposable sandbox and are wiped when it ends.

1. Run: claude
2. At the prompt, type /login
3. Open the printed URL on your own machine, approve, and paste the code back
4. Prefer a key? export ANTHROPIC_API_KEY=sk-ant-... then run claude

## Links

- [Documentation](https://code.claude.com/docs)
- [Source repository](https://github.com/anthropics/claude-code)