# Xodia security: how your code, secrets and previews are protected

URL: https://xodia.ai/security
Description: How Xodia protects your site: previews kept apart from your session, encrypted secrets, OAuth for AI apps, roles and permissions, your code in git.
Last updated: 2026-11-26

Your site's code runs only in its own preview, in your browser, on an address kept apart from your Xodia session. Secrets are encrypted at rest, your AI connects with OAuth and keeps its own login, and your code stays real code, in your own git repo when you push it there. This page says what Xodia does today, and what it doesn't claim.

[Start free](https://app.xodia.ai/auth/sign-up?ref=security) [How Xodia works](https://xodia.ai/how-it-works)

Free plan. No card needed.

Isolated previews

## Your site's code runs only in its preview

A preview runs your site's own code. So it runs in your browser on an address of its own, apart from the editor, and the editor never runs it. Each site's preview runs on a separate domain from Xodia, so a site's code never shares cookies or storage with the app.

The preview Your site, built and run in your browser on its own preview address, with a token in the address that expires and that owners and admins can reset. Checks and screenshots your AI asks for run the same way in a cloud browser.

Kept apart from Xodia The editor and the preview only exchange messages, and each checks where a message came from. The editor reads and edits your code, but never runs it.

- This project's own files, served by Xodia to its preview address only
- npm packages at the exact versions your project uses, from Xodia's package service
- The services your site's code calls itself, such as your CMS, as it does on your live site
- Your Xodia sign-in: the preview's address never gets Xodia's cookies
- Other projects' files

What a preview can and can't reach.

Secrets

## Secrets encrypted, and kept from your AI

Host tokens, analytics credentials and your project's environment variables are stored encrypted at rest with AES-256-GCM, each tied to its own record. Whether visitors can read a variable depends on its name.

- ### VITE_ variables are public

  Variables named VITE_ are built into your site's pages, so visitors' browsers can read them. Use public keys only, such as a maps browser key, a Stripe publishable key or an analytics ID. Xodia refuses a VITE_ variable whose value looks like a secret key.
- ### Other variables stay private

  Other variables, such as a CMS token, stay encrypted in Xodia, are read only by Xodia's server and never reach visitors or your AI. Once saved, a value shows as hidden.
- ### Secret keys for your live site

  Secret keys your live site needs belong in your host's environment settings (Vercel, Netlify or Cloudflare), for its server functions.
- ### Who can change them

  Adding or removing variables needs the workspace's permission to manage connections.

Roles and permissions

Pro and up

## Decide who can publish, invite and connect

With team roles, the workspace owner sets the lowest role that may create or delete projects, publish to live, invite members and manage connections.

- Owners can always do everything, including billing and deleting the workspace
- Admins help run the workspace; team roles come with Pro and Agency
- Members work on projects and do what is set to all members
- Without team roles, every member can create, delete and publish, and admins and owners invite and manage connections

Audit log

Every plan

## See who signed in and what changed

Owners and admins have an audit log of the workspace in Organization settings, on every plan.

- Sign-ins with their method, city and country, and failed sign-ins marked so they stand out
- Members, roles, billing, connections and tokens, projects and workspace settings
- Kept for 90 days, with filters and CSV export of up to 10,000 rows
- No IP addresses, passwords or tokens are stored

More protections

## Your code, your AI and your account

The rest of what Xodia does to keep your site and your account safe.

- ### Your code in your repo

  Xodia's GitHub App only sees the repositories you pick. Pushes to your repo, which come on any paid plan, from $9, are commits with just your changes, and changes you haven't pushed are kept in a private copy, never on your branch.
- ### OAuth for AI apps

  AI apps connect to Xodia's MCP server and sign in with OAuth. Every AI app needs your Allow, on a page that names the app and where its access will be sent. An AI app can connect only to an account with a confirmed email. Your AI's own login never comes to Xodia, and the tools can't deploy your site. Skill text loads from Xodia's servers for your account; it isn't shipped in the app or the preview.
- ### Your AI asks first

  When Your AI wants to run a command on your computer, Xodia asks you. A command you choose not to be asked about again is remembered for you only, in that project, and commands that can run other code are asked about every time. Xodia AI asks Allow or Deny before it deletes a page, a file or CMS items.
- ### Drafts out of search

  The editor, previews, drafts and the Preview address of a hosted site tell search engines and other crawlers not to index them, and the app's robots.txt keeps crawlers out. A Preview can also have a password.
- ### Protected sign-in

  Sign in with email and a strong password, GitHub or Google. A new email account is confirmed from the link we send, with its password. Sign-up, sign-in and password resets are checked for bots, repeated wrong sign-ins are paused for a while, and failed sign-ins show in the audit log. Deleting your account or a workspace asks for your password first. Two-step sign-in with passkeys or an authenticator app, and workspaces can require it. [How two-step sign-in works](https://docs.xodia.ai/account/two-step-sign-in)
- ### Browser protections

  The app refuses changes that don't come from Xodia itself, can't be framed by other sites, and is served over HTTPS only.
- ### Imports you may make

  Import a website asks you to confirm you own the site or have permission to copy it. It reads only what visitors can see, skips pages behind a login and removes scripts and trackers.
- ### Your data, your call

  Restore a deleted project for 24 hours, and request a free copy of your personal data any time from your Account page, on every plan; we send it within 30 days. Workspace owners and admins can download a whole site as one zip with Export this site, on Starter, Pro and Agency. When you delete a workspace or your account, its projects' files are removed within 24 hours. [How it works](https://docs.xodia.ai/workspace/your-data)
- ### Report a harmful site

  Sites on the Free plan carry a small badge with a Report link, and a preview opened on its own shows a Report abuse link. Anyone can report phishing, malware, spam or other harm on a site made with Xodia, and we review every report. [Report a site](https://xodia.ai/report)

Honest limits

## What Xodia doesn't claim

Xodia is new. It doesn't hold SOC 2 or any other security certification yet, doesn't offer a choice of data region, and has no uptime guarantee. We will say so here when that changes.

The services Xodia uses to run, and what each one receives, are listed in the [privacy policy](https://xodia.ai/privacy#share).

### Found a security problem?

Please tell us before you tell anyone else. Send what you found and the steps to reproduce it, and leave other people's data alone while you look.

[Report a security issue](mailto:hello@xodia.ai?subject=Security%20report)

Keep exploring

## Related pages

- [How it works Start, plan, build, edit and publish](https://xodia.ai/how-it-works)
- [Collaboration Live team view, comments, site activity and the audit log](https://xodia.ai/product/collaboration)
- [AI in Xodia Xodia AI built in, or the AI app you already use](https://xodia.ai/product/ai)
- [Git and publishing Autosave, branches, restore points and deploys](https://xodia.ai/product/git-and-publishing)
- [GitHub Import and sync repos; push commits and pull requests on paid plans](https://xodia.ai/integrations/github)
- [For agencies Every client site in one workspace](https://xodia.ai/solutions/agencies)
- [Product overview Every feature in the order you use it](https://xodia.ai/product)
- [Pricing Plans, limits and what Free includes](https://xodia.ai/pricing)

## Edit your site safely.

[Start free](https://app.xodia.ai/auth/sign-up?ref=security-cta) [See pricing](https://xodia.ai/pricing)
