# Create a project

Start a [project](/docs/concepts/project-lifecycle.md#projects), which holds your agents, tools, files and deployments, in Studio, from your terminal or with the API.

## Before you start

You need a Veryfront account. [Sign in](/sign-in) or create one.

## Create a project

**Code**

1. Sign in. Without a browser, such as in CI, set `VERYFRONT_API_KEY` instead:

```bash
npx veryfront@latest login
```

2. Create the project's files:

```bash
npm create veryfront@latest support-desk -- --template minimal --yes
```

3. Put it on Veryfront. `up` creates the project, uploads the source to `main` and publishes a preview:

```bash
cd support-desk
npx veryfront up --yes
```

4. Read what `up` prints. You should now see `✓ Pushed support-desk to Preview` and the project's `Studio:` and `Preview:` addresses.

### Troubleshooting

**If you see "Project slug … is already in use"**, another project has that slug. Change the `name` in `package.json` and run `up` again.

**If you see "Source pushed, but … was never observed serving this app"**, the preview is protected. Open the `Preview:` address signed in to Veryfront.

**Studio**

1. Open **Projects**.
2. Click **New project**.
3. Enter "Support desk" in **Name**.
4. Click **Create project**. Studio opens the project. You should now see "Veryfront Agent" and `main` in the branch menu.

**API**

1. Create it with an [API key](/docs/authentication/api-keys.md) for all projects, not a project key. `templateSlug` starts it with the minimal website; leave it out for an empty project:

```bash
curl -X POST https://api.veryfront.com/projects \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Support desk","templateSlug":"minimal"}'
```

2. Set `PROJECT` to the `id` in the response: `export PROJECT=<id>`.
3. Get the project. You should now see that slug and the name "Support desk":

```bash
curl https://api.veryfront.com/projects/$PROJECT \
  -H "Authorization: Bearer $VERYFRONT_API_KEY"
```

## Troubleshooting

**If the API answers "Project-scoped API keys cannot create new projects"**, the key reaches only one project. Create the project with a key for all projects.

## With MCP

1. Call `veryfront__create_project` with `{ "name": "Support desk" }`. The answer holds the project's `id` and its `slug`, the name with a suffix, such as `support-desk-32891c02`.
2. Call `veryfront__get_project` with that slug. It worked when the project comes back with the same `id`.

## Next steps

* [Create an agent](/docs/agents/create-agent.md)
* [Edit files](/docs/projects/files.md)
