KKodaGuide

Projects

Set up the project backend

Open Project Setup to pick a backend (Supabase, AWS, or Google Cloud), keep secrets in the cloud instead of the iPhone app, and connect services such as Shopify. The same runtime protocol works for every provider.

01

Open Project Setup

  1. 1

    From Apps, open the project’s settings (the cog on the project card).

  2. 2

    From a chat, use the gear in the project ribbon, then Project Settings.

  3. 3

    The page is titled Project Setup. It walks you through a backend, then the APIs this app needs.

    Open the Make this app real guide to see why this page exists: a backend keeps logins and secret keys off the phone, and Koda talks to shops and other APIs through that backend.

Good to knowSelect What this page is for to expand or collapse this explanation. A backend keeps logins and secret keys off the phone, and Koda talks to shops and other APIs through that backend.

02

Choose a backend

Under Backend, pick where Koda should store app data, protected credentials, and service connections. Every option uses the same runtime protocol. Generated Swift never embeds cloud secrets-the iPhone app only calls the public function URL.

  1. 1

    If no backend is linked yet, read Where should Koda store app data and secrets? and choose a provider.

    Pick Supabase, AWS, Google Cloud, or Custom HTTP. Supabase is marked as the beginner-friendly option.
  2. 2

    Choose Supabase if you want Koda to create and manage the backend for you. This is the recommended path for beginners.

  3. 3

    Choose Google Cloud to deploy the runtime and secrets into a Google Cloud project you already use.

  4. 4

    Choose AWS to deploy the runtime and secrets into an AWS account and region you choose.

  5. 5

    Choose Custom HTTP only if your team hosts and maintains its own runtime.

Good to knowAccount credentials live in Connect cloud accounts, not in this project. After you connect there, return here to link a project, account, or region.

03

Create or connect Supabase

With Supabase selected, you can create a new project or link one you already have. Connect Supabase in Connect cloud accounts first if the amber banner asks you to.

  1. 1

    Keep Create new selected to start a project, or switch to Use existing to pick one from the list.

  2. 2

    For a new project, confirm the Supabase project name (it starts from your Xcode project name).

  3. 3

    Enter a Database password. You set this once. Save it somewhere safe-Koda will not ask for it again, but you may want it later for use in other applications.

    Create a Supabase project here. The password note explains that you set it once and should store it yourself.
  4. 4

    Select Create & Link Project. For an existing project, choose it from the list and select Link Project.

05

Connect an API or service

Under Connected Services, add the APIs this app needs. Koda keeps secret values protected and sends requests through your backend. The iPhone app never receives those secrets.

  1. 1

    Scroll to Connected Services. Leave Test service connections after save checked so Koda verifies the proxy after you save.

  2. 2

    To use a preset, choose a provider under Explore presets (for example Shopify). To configure any other API yourself, select Custom Service.

    Use Custom Service for a blank setup, or pick a provider under Explore presets such as Shopify.
  3. 3

    For a custom service, enter a plain name and description, add the fields the service needs, and mark passwords, tokens, and private values as Secret value.

  4. 4

    Choose API key or OAuth 2.0, set the API base URL, and map credential fields or headers as needed.

  5. 5

    Select Save setup (or Save & verify proxy) before asking the agent to use the service.

Good to knowPrivate values are stored in the provider’s secret store (Supabase Vault, Google Secret Manager, or AWS Secrets Manager). Never paste a secret into chat or put it in your app’s source code.

06

Connect Shopify

The Shopify preset can add Storefront, Admin, or both. After you save, Koda mints a fresh Storefront token and tests the connection so shoppers are not sent to Shopify’s password page.

  1. 1

    In Connected Services, select Shopify under Explore presets.

    The Shopify preset asks for your store domain, then lets you add Storefront, Admin, or both.
  2. 2

    Enter your Shopify store domain (for example example-store.myshopify.com).

  3. 3

    Choose Add Storefront service for catalog, cart, and checkout through Storefront GraphQL. Choose Add Admin service for merchant operations such as products, orders, and inventory. Add both if the app needs both.

  4. 4

    Open each new Shopify service and enter the Shopify app’s client ID and client secret. Keep the secret marked as Secret value.

    After the preset is added, fill in client ID and client secret, keep the secret marked as Secret value, then save so Koda can mint and verify the Storefront token.
  5. 5

    Select Save setup. Koda remints the Storefront token on save and runs Proxy verification. Look for Connection test passed before asking the agent to use Shopify.

Good to knowStorefront is for shopping in the app. Admin is for store management the agent can do on your behalf. Use only the APIs your Shopify app is allowed to access. If a test shows a password or login page, save again so Koda remints the token.