# Paste your code

The fastest way in for code you already have. Wrote it yourself, got it from an AI, or pulled it from a tutorial? Paste it, drop in a folder, or upload files, and we take it from there.

## How it works

1. **Paste or upload your code.** Paste into the editor, drag in a folder, or pick files. You can make last minute edits before anything happens.
2. **Tokay analyzes it.** We work out how your code starts and what it needs to run in production.
3. **Review any changes.** If something needs fixing first, you get a change proposal to approve. Nothing ships silently.
4. **Deploy.** When the setup looks right, hit **Deploy**. A minute or two later your service is live.

## What we handle automatically

- **Smart paste cleanup.** If your paste has extra text around the code, we strip it out. No need to tidy it up first.
- **Service detection.** We work out whether your code runs as a web app, scheduled job, webhook, or background worker, and prefill the name and entry point.
- **Missing manifests.** If your code needs dependencies but has no package.json or requirements.txt, we generate one. You review exactly what we added.

## Two flags you might see

- **Hardcoded secrets.** Find an API key in your code and we'll move it into encrypted storage instead of shipping it in source. Approve the change and we rewrite the reference for you.
- **Suggested code changes.** When a safe deployment needs a small change in your code, we show the exact diff and explain why. Apply it with one click, or keep your code as is.

- [Read the detailed walkthrough in the docs](/docs/your-first-deploy)
