# Getting started

FeatWire runs the AI features of your app. You write what the AI should do in the FeatWire dashboard, and your app calls it with one HTTP request. You can change the AI later without a new version of your app.

This page takes you from an empty project to your app's first call, in seven steps. It takes about ten minutes.

> FeatWire is in private alpha: accounts are opened by invitation. Join the waitlist on [featwire.com](/) to get one.

## 1. Create a project

A project holds your app's Features, keys and calls. Use one project per app.

1. Sign in at [featwire.com/login](/login).
2. Open the project menu at the top of the sidebar and choose **New project**.
3. Type a name. The slug (the project's short id) follows the name until you change it.
4. Click **Create project**.

## 2. Add your AI provider key

FeatWire calls the AI model with your own key, so the AI provider bills you directly. Nothing reaches the model without it.

1. Create a key at Google ([Get a key in Google AI Studio](https://aistudio.google.com/apikey)) or at OpenAI ([Get a key on the OpenAI platform](https://platform.openai.com/api-keys)).
2. In the dashboard, open **Settings** and find **AI provider keys**.
3. Paste the key in the provider's field and click **Add key**. FeatWire checks it with the provider before saving it, then only ever shows its last 4 characters.

You only need the key of the provider whose models you use. See [AI provider keys](/docs/ai-provider-keys) for what each provider does with your data, and why you should set a spending limit there.

## 3. Create a Feature

A Feature is one thing the AI does for your app: suggest meals, summarize a review, answer as a coach.

1. Open **Features** and click **New feature**.
2. Choose its kind:
   - **Task**: your app sends one piece of text and gets one answer.
   - **Conversation**: your app sends the chat so far and gets the next reply.
3. Give it a name, such as `meal-ideas`. Your app uses this name to call it, and it cannot be changed later.
4. Choose a model and write the instructions: what the model should do with each request.
5. For a task, choose what you get back: plain **Text**, or **Structured** values read from an example you paste.
6. Click **Create feature**.

The Feature now has a version 1, not published yet. See [Features](/docs/features) for the details.

## 4. Test it

On the Feature's page, click **Test**, type what your app would send, and run it. You see the answer, the tokens and the estimated cost.

- A test is a real call to the model, with your provider key: it costs as much as any call.
- It runs what the editor holds, saved or not, and saves nothing.
- Tests show up in **Requests** under the `test` environment. You can run 10 a minute.

Change the instructions and test again until the answers look right. Each **Save as new version** creates a new version.

## 5. Publish a version

Your app only ever gets the published version, never a draft.

1. Click **Publish vN** at the top of the Feature's page (or **Publish** next to a version in the **Versions** tab).
2. Confirm.

Changes reach your app within 30 seconds of publishing.

## 6. Connect your app

Open the Feature's **Connect** tab.

1. **An API key.** Create one if the project has none. It starts with `featwire_sk_` and is shown only once: copy it.
2. Store it as a secret on your server, in an environment variable named `FEATWIRE_API_KEY` (for example in your host's settings, or in a `.env` file that you do not commit).
3. **The prompt.** Copy it and paste it into your coding assistant (Claude Code, Cursor, Codex...). It describes this exact Feature: the call, its input, its answer and every error. Your assistant writes the code.

> Never put the FeatWire API key in a browser page or a mobile app: anyone could extract it and make calls billed to you. If your app is a mobile app or runs only in the browser, the prompt tells your assistant to create a small server function that holds the key.

## 7. Make the first call

The Connect tab also gives the call itself. From a terminal, with the key in `FEATWIRE_API_KEY`, it looks like this:

```bash
curl -sS https://featwire.com/api/v1/run \
  --max-time 65 \
  -H "Authorization: Bearer $FEATWIRE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"feature":"meal-ideas","input":"Some text","userId":"user_8f14e45f"}'
```

The answer comes back as JSON, with the model's text in `output`. Open **Requests** in the dashboard: the call is listed with its Feature, status, duration and estimated cost. On **Overview**, the Get started checklist is done once this first call arrives.

Next: set a [monthly spending limit and daily limits per user](/docs/limits), or read the [API reference](/docs/api-reference).
