Skip to main content
Connecting the ef CLI and creating an API key both hand out access that keeps working after you close the browser. Before either one, ElasticFunnels checks that it’s really you, even when you are already signed in.

Before you start

  • Two-factor authentication must be on for your account: an authenticator app, a passkey, or both. If it’s off, the app opens the setup first and continues once you are done.
  • Keys and CLI connections are created from a signed-in browser session only. An existing API key or CLI token can’t create new ones.

The “Confirm it’s you” step

When you click Connect or Create API key, a window asks you to confirm it’s you. What it offers depends on your account: With a passkey, your device asks for your fingerprint, face or PIN. A passkey that skips that check is refused. One confirmation lasts 10 minutes. Within that time you can connect more devices or create more keys without being asked again. Signing in with your second factor counts too, so right after sign-in you may not see the window at all. When you confirm, the action you started (the connection or the new key) goes through on its own. If you click Cancel instead, nothing is created and the app shows Action not saved.

Connect the ef CLI

The ef CLI keeps a project’s pages on your computer so you, or an AI tool such as Claude Code or Codex, can edit and publish them. Each computer gets its own connection to one project, which you can disconnect on its own.
Settings → AI tools in your project gives you a ready-made instruction to paste into Claude Code, Codex or a desktop app. It runs the same steps below for you, and the approval page still opens in your browser.
1

Install the CLI

2

Start the connection

In an empty folder for the project, run:
The terminal prints a short code and a link, and opens the link in your browser:
The code expires after 10 minutes. If the browser doesn’t open, copy the link yourself.
3

Check the request

The Connect a device page shows the device name, the tool, the IP address it comes from and the code. Make sure the code matches the one in your terminal. If it doesn’t, or you didn’t start this, click Cancel.
4

Pick the project

Under Which project?, choose the project this computer may reach. The device can read and change that project the same way you can, and nothing else.
5

Connect and confirm it's you

Click Connect, then confirm with your passkey or code as described above.
6

Go back to the terminal

The page shows Device connected. The terminal picks it up by itself and prints Signed in to <your project>.

A computer without a browser

For a remote server where you can’t open the approval page:
  1. In the app, go to Settings → AI tools, click Show advanced options, and under Computer without a browser click Create a one-time code. This also asks you to confirm it’s you.
  2. Copy the command it shows and run it on the server:
The code works once and expires in 10 minutes.

Reconnect a folder

If a computer was disconnected, or its access expired, commands stop with a message telling you to sign in again. Run this in the project folder:
It goes through the same browser approval and replaces only the stored credential. Your synced files and the project binding stay as they are. Use ef login --code <code> on a machine without a browser.

See or disconnect your devices

Open Account settings from your account menu and choose Connected devices. Each row shows the device, its project, and when it connected and was last used. Disconnecting a device asks you to confirm it’s you, and stops that computer at once without touching your other connections.

Create an API key

API keys are for your own scripts and integrations. Send the key in the EF-Access-Key header (see Authentication).
1

Open the API settings

In your project, go to Settings → API and click Create API key.
2

Name it

Give it a name that says where it will be used, such as reporting server.
3

Choose what it is for

Under Use, pick ef CLI or AI agent for a key that runs the ef CLI unattended (see below), then Only this project or All projects I can access, now and later; or pick Custom to choose the projects, access and partner API scopes yourself.
4

Custom only: choose the projects and access

Under Projects, pick Only this project, Projects I pick, or All projects I can access, now and later. Under Access, pick Read and write or Read-only. Partner API scopes apply only to the partner API (/api/v1).
5

Create and confirm it's you

Click Create API key, then confirm with your passkey or code.
6

Copy the key now

The Copy your new key window shows the full key once. Store it in a password manager or your integration’s settings, then click I’ve stored it. After that the page shows only the first and last characters.
No API key or CLI connection reaches billing, payment cards, team members, organization settings or other account-wide pages, whatever you pick. Those answer 403 key_account_area; do them from the app.

A key for the ef CLI or an AI agent

A key made with ef CLI or AI agent works for Only this project or All projects I can access, now and later, can read and write, and can do everything the ef CLI does there: pages, components, assets, scripts, folders, templates, funnels, products, domains, tags, popups, stats, split tests, orders, contacts, CRM import, audiences, campaigns and settings. It acts as you, so it can’t do more than your role allows; for example, personal contact details still need the permission to see them. Use it where nobody can approve a browser sign-in, such as a server or an AI agent:
For a one-project key the CLI asks the server which project the key belongs to, so --brand-id is not needed. An all-projects key reaches every project you are assigned to (an organization member who is not assigned to a project can’t open it in the app, and their key can’t either), so bind each folder to one with ef init --api-key <your key> --brand-id <id>. You can also set the key in $EF_API_KEY. Revoke stops a key at once and can’t be undone.

Older full-access keys

A key marked Full access (legacy) can do everything your account can do, in every project. It keeps working. Regenerate gives it a new value and Convert to scoped key replaces it with a key limited to the projects and access you pick. Both ask you to confirm it’s you, and both stop the old value at once, so update your integrations right after.

Troubleshooting

The window stays open and nothing counts as a failed try. Click Confirm with passkey again, or use the link below it to enter your authenticator code or a recovery code.
Five failed tries within 15 minutes, counting wrong codes and failed passkey checks together, lock this step until the 15 minutes are up. A successful confirmation resets the count. Switching between passkey and code does not reset the count. Wait, then start the connection or key again.
Use Use authenticator code instead (or Use a recovery code instead on a passkey-only account). To use your passkey, open the link in a recent version of Chrome, Safari, Edge or Firefox.
Someone clicked Cancel on the Connect a device page. Nothing was connected. Run the command again.
Some new accounts can’t create keys or connect devices until access is granted. Use Request access in that window and tell us what you need it for.