> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moxycode.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Privacy & FAQ

> How MoxyCode handles your code and data, and answers to common questions.

## Privacy & Security

<AccordionGroup>
  <Accordion title="Is my code sent to the cloud?">
    In **online mode**, the code from the file you are working on is sent to the MoxyCode backend to generate fixes and analysis. For LWC components, all files in the component bundle are included for context. For Apex classes, dependent classes are included where relevant.

    Your code is used only to generate the fix or analysis for that specific request. It is not stored, used for training, or shared with third parties.

    In **offline mode** (Pro), all processing happens locally on your machine. No code leaves your environment under any circumstances.
  </Accordion>

  <Accordion title="Does MoxyCode store my code?">
    No. MoxyCode does not store your code. Code sent in online mode is used to process your request and is not retained after the response is returned.
  </Accordion>

  <Accordion title="What data does MoxyCode collect?">
    MoxyCode collects the minimum data needed to operate the service:

    * **Email address** — for account authentication
    * **Usage data** — request counts and plan status to enforce limits and billing
    * **Code context** — sent per request in online mode, not stored

    MoxyCode does not collect personally identifiable information beyond your email address, and does not sell or share your data with third parties.
  </Accordion>

  <Accordion title="Where is my data stored?">
    MoxyCode account and usage data is stored on servers located in Sydney, Australia (AWS ap-southeast-2). This is compliant with the Australian Privacy Act.
  </Accordion>

  <Accordion title="Is MoxyCode safe to use with production code?">
    Yes — MoxyCode reads your code to generate fixes but does not modify anything without your explicit action. In **Safe Mode** (the default), every fix requires your manual approval before being applied. You can always undo an applied fix with **Undo Fix** or `Cmd+Z` / `Ctrl+Z`.

    For production orgs, we recommend keeping Safe Mode enabled at all times and reviewing the **Confidence** and **Risk** ratings before applying any fix.
  </Accordion>

  <Accordion title="Is MoxyCode safe to use in air-gapped or restricted environments?">
    The Free and Pro online modes require outbound HTTPS access to the MoxyCode backend. If your environment restricts outbound traffic, online mode will not function.

    **Offline Mode** (Pro) runs entirely locally using Ollama — no outbound connections are made and no code leaves your machine. This makes it suitable for restricted environments.

    For fully air-gapped environments with team management and compliance requirements, contact us about the **Enterprise** plan.
  </Accordion>

  <Accordion title="Which AI service processes my code?">
    In online mode, code is processed via the MoxyCode backend using cloud AI. The specific models used are managed on our end and may be updated as better options become available. We do not expose which models are in use.

    In offline mode, all processing is handled locally by Ollama on your own machine. No third-party AI service is involved.
  </Accordion>

  <Accordion title="Does MoxyCode comply with the Australian Privacy Act?">
    Yes. MoxyCode is built and operated by Aptivate Pty Ltd, an Australian company. Account and usage data is stored in Sydney, Australia (AWS ap-southeast-2) in compliance with the Australian Privacy Act 1988.

    For a full privacy policy, visit [moxycode.com](https://moxycode.com).
  </Accordion>
</AccordionGroup>

***

## Frequently Asked Questions

<AccordionGroup>
  <Accordion title="What file types does MoxyCode support?">
    MoxyCode supports the following Salesforce file types for both deployment and code analysis:

    | Extension  | Type                                 |
    | ---------- | ------------------------------------ |
    | `.cls`     | Apex class (including batch classes) |
    | `.trigger` | Apex trigger                         |
    | `.js`      | LWC JavaScript                       |
    | `.html`    | LWC HTML template                    |

    XML metadata files are not supported in the current release.
  </Accordion>

  <Accordion title="Do I need Salesforce CLI installed?">
    Yes. MoxyCode uses the Salesforce CLI (`sf`) to deploy files to your org. Make sure it is installed and you have an active org connection before using **MoxyCode: Deploy to Org**.

    Download the Salesforce CLI from [developer.salesforce.com/tools/salesforcecli](https://developer.salesforce.com/tools/salesforcecli).
  </Accordion>

  <Accordion title="Can I use MoxyCode without an internet connection?">
    Yes — with **Offline Mode** (Pro). Offline Mode uses Ollama to run a local AI model on your machine. Once set up, MoxyCode works fully offline with no internet connection required.

    In online mode, an internet connection is required to generate fixes and analysis.
  </Accordion>

  <Accordion title="Why didn't the fix work?">
    A few common reasons:

    * **Low Confidence fix** — the AI was uncertain about the correct fix for your specific code context. Review the explanation and apply the change manually.
    * **Layered errors** — fixing one error can reveal another underneath. Run **MoxyCode: Deploy to Org** again after applying a fix.
    * **Complex code context** — use the chat input in the panel to ask MoxyCode for more context or an alternative approach.

    Always check the **Confidence** and **Risk** ratings before applying a fix. For **Review Needed** fixes, read the **What Changed** summary carefully before accepting.
  </Accordion>

  <Accordion title="What is the difference between Safe Mode and Auto Fix Mode?">
    In **Safe Mode** (default), MoxyCode generates a fix and waits for you to click **Apply Fix** before changing your code. In **Auto Fix Mode**, the fix is applied automatically without requiring you to click Apply Fix.

    In both modes, you still need to save the file to confirm the change, and you can always undo with **Undo Fix** or `Cmd+Z` / `Ctrl+Z`.

    See [Safe Mode](/configuration/safe-mode) for more detail.
  </Accordion>

  <Accordion title="Can I use MoxyCode for vibe coding?">
    Yes — use **MoxyCode: Open Chat** from the Command Palette to open the AI chat panel without triggering analysis. Ask MoxyCode anything about your Apex or LWC code — architecture questions, best practices, code explanations, or Salesforce-specific guidance.
  </Accordion>

  <Accordion title="Does MoxyCode work with scratch orgs and sandboxes?">
    Yes. MoxyCode deploys to whichever org is set as your Salesforce CLI default — scratch orgs, sandboxes, and developer editions all work the same way.
  </Accordion>

  <Accordion title="Will MoxyCode support more file types in the future?">
    Yes. XML metadata support is planned for a future release. Additional file types and Salesforce metadata support will be added over time.
  </Accordion>

  <Accordion title="How do I give feedback or report a bug?">
    Click the **Feedback** button at the bottom of any MoxyCode panel in VS Code. You can also reach us via [moxycode.com](https://moxycode.com).
  </Accordion>
</AccordionGroup>

***

<CardGroup cols={2}>
  <Card title="Troubleshooting" icon="wrench" href="/help/troubleshooting">
    Solutions to common issues with MoxyCode
  </Card>

  <Card title="Plans & Limits" icon="credit-card" href="/help/plans-and-limits">
    Understand request limits and what Pro unlocks
  </Card>
</CardGroup>
