Developers / Docs / Getstarted

Development Using eisy-ai

eisy-ai is an AI assistant that runs on your eisy. In developer mode it walks you through building a real, working plugin from start to finish, just by talking to it: it researches the device or service, designs how it shows up in eisy, writes the code, installs and tests it on your eisy, helps you debug it, and pushes it to GitHub.

You describe what you want. eisy-ai does the heavy lifting. Then you refine the result until it matches your vision.

Info

Prefer to write the code yourself? See Development Using VS Code. You can also mix the two: let eisy-ai create the plugin, then open it in VS Code to debug and refine it.

Note

The sections below come straight from the eisy-ai User Guide, which is kept in sync with the eisy-ai project. For everything else eisy-ai can do, see the full guide.

Prereqs

  • An eisy | r2 or eisy | lite that is up and running, with access to eisy-ui in a browser.
  • One of these ways to supply the AI:
    • An API key from an AI provider: Claude, OpenAI, Gemini or Grok. A local llama.cpp-compatible server also works. eisy-ai uses your own key.
    • Or MCP, to use an AI tool you already work in, such as Claude Desktop, with no API key in eisy-ai. See Using MCP.
  • A GitHub account, if you want eisy-ai to push your plugin to GitHub. It is not needed to build and test a plugin.
  • VS Code, only if you want to debug or edit your plugin in it. This is optional.
  • To publish to the plugin store, you must also be a vetted developer. Building and testing locally doesn't require it.

Installation

Install eisy-ai

eisy-ai is a plugin, so it's installed the same way as any other eisy plugin, from eisy-ui.

  1. Open eisy-ui in a browser, go to the plugin Store, and from the menu choose eisy Plugins.

eisy Plugins page, with the Add Plugin button highlighted

  1. Click the Add Plugin button, search for eisy-ai, and click it, followed by Activate and then Install.

Search for eisy-ai in the eisy Plugins store

Activate and Install

  1. Wait for the install to finish. eisy-ai will appear in your installed plugins list once it's done.

eisy-ai appearing in the installed plugins list

At this point eisy-ai is installed but not yet usable — it needs your LLM provider's API key before it can actually hold a conversation.

Configure eisy-ai

eisy-ai talks to an LLM provider you bring yourself (Claude, OpenAI, Gemini, Grok, or a local llama.cpp-compatible server), so have that provider's API key ready before you start.

  1. Click on eisy-ai in the Plugins list and then click on the Configuration tab.

eisy-ai's configuration screen, showing JSON configuration field

  1. Paste in a configuration block and replace the placeholder API key with your own. Here's a minimal working example using Claude for both modes (see README.md for what each field means, and POLYGLOT_CONFIG.md for every option):

    {
      "max_tool_set_switches_per_turn": 1,
      "search_engine": null,
      "search_engine_api_key": null,
      "mcp_server": false,
      "nucore_runtime": {
        "unified": {
          "enabled": true,
          "provider": "claude",
          "model": "claude-haiku-5-5",
          "api_key": "Replace_with_your_Anthropic_API_Key",
          "stream": true,
          "max_tokens": 64000,
          "max_iterations": 20
        },
        "plugin_authoring": {
          "enabled": true,
          "provider": "claude",
          "model": "claude-sonnet-5-5",
          "api_key": "Replace_with_your_Anthropic_API_Key",
          "stream": true,
          "max_tokens": 64000,
          "max_iterations": 50
        }
      }
    }
    

    unified is the profile behind customer mode; plugin_authoring is the profile behind developer mode. You can give each one a different provider or model — for example, a faster/cheaper model for everyday customer requests and a stronger one for plugin authoring. Either profile can be turned off entirely by setting its enabled to false, as long as at least one profile stays on.

  2. Click on the Save Changes button, then restart the eisy-ai plugin from eisy-ui for the new configuration to take effect.

    The "mcp_server": false line turns off network access for outside MCP clients. Leave it false unless you specifically want that — see Using MCP.

No API key configured? eisy-ai will show a plain notice that web chat and plugin authoring need a key before they'll work. Add one and restart to clear it. (If you only intend to use eisy-ai through MCP, you don't need a key.)

Open eisy-ai

Once configured, eisy-ai is reachable from the eisy-ai icon shown at the top of eisy-ui.

the eisy-ai icon in the top right navigation bar of eisy-ui

Click it to open the chat window. Every new conversation starts in customer mode — see

Modes: Customer vs. Developer

eisy-ai has two modes:

  • Customer mode — control and understand your smart home: devices, scenes, routines, plugins, day-to-day troubleshooting. This is where every conversation starts.
  • Developer mode — build, test, and publish your own eisy plugins.

Switching modes. Two ways, and they behave differently:

  • Just ask. Say what you want — "I'd like to build a plugin for my pool controller," or from developer mode, "turn off the living room lights" — and eisy-ai switches for you, mid-conversation. There's a limit of one automatic switch per message by default; a request that would need more than that gets a plain explanation instead, so just split it across a couple of messages.
  • Type the command directly. Send a message containing only /developer or /customer to switch immediately. This switch is sticky — it stays in effect until you switch again.

One important consequence either way: the two modes don't share conversation history. When a switch happens because you asked for something, eisy-ai carries over a short summary of your request so you don't have to repeat yourself — but nothing beyond that summary comes with you. Switching with the explicit /developer//customer command carries over no summary at all.

If a mode isn't enabled on your installation, switching to it fails with a plain explanation.

Developer mode

Developer mode walks you through building a real, working eisy/IoX plugin end to end, conversationally: researching the target device or service, defining how it shows up as a node, generating the actual plugin code, testing it on a real eisy, debugging it in VS Code, and pushing it to GitHub. Switch into it as described in 2.3 above.

Three rules that apply across the whole workflow:

  • Generating a plugin only ever touches your local disk — nothing changes on a real eisy until you explicitly install it.
  • Secrets never get written into generated code. An OAuth client_id/client_secret is always a placeholder at generation time; you set the real values after install.
  • Deleting a plugin's registration or an installed plugin previews first, then requires your very next reply to be the literal word YES.

Click the Development tab in eisy-ui.

eisy-ui's Development tab, showing the Local Plugins and My Published Plugins sections

There are two sections here:

  1. Local Plugins — plugins installed locally that aren't published to the store. Everything you build with eisy-ai in developer mode lives here: it's stored locally on eisy and installed directly from eisy into its own sandbox environment, never touching the store.

    Although eisy-ai manages all of your plugin's configuration for you, clicking on it here lets you configure its settings manually, and even watch it build and update its code right in front of your eyes.

    Local Plugins list with a plugin selected

    The plugin's detail view, with the Code tab highlighted

    The plugin's live code/build view

  2. My Published Plugins — if you're a vetted developer, this is where you take a plugin from Local Plugins and publish it to the official store, optionally earning money by selling it.

Want to publish and sell your plugins? Becoming a vetted developer is required before you can publish to the store. Contact us at universal-devices.com/my-tickets to get started.

Prompting eisy-ai in developer mode

Think of this as a conversation that moves through the following stages — you don't need to name each tool, just describe what you want at each point and eisy-ai drives the workflow:

  1. Set up your developer identity (once per workspace). The first time you use developer mode, eisy-ai asks for your email, display name, and optionally a GitHub URL — this gets stamped into every plugin you generate. It won't ask again once this is on file, and won't overwrite it without you asking to change it.
  2. Describe the device or service you want to support. "I want to build a plugin for my SimpliSafe alarm." eisy-ai checks the plugin store first (and recommends stopping there if a plugin already covers it), then searches GitHub and the web for the device's own API docs or an existing reference implementation. This research step is a hard prerequisite — generation refuses without it.
  3. Define how the device shows up. eisy-ai proposes properties, commands, and settings UI for the device (its "Dynamic Profile"), looking up standard property/unit ids rather than inventing new ones where a standard one exists. You can keep refining this in plain language — "actually, make the target temperature a range from 60 to 90" — before anything is generated.
  4. Generate the plugin. "Looks good, generate it." — this produces the actual plugin directory: Python code, registration file, requirements, install script, README/LICENSE, a starter test suite. If files already exist, you'll see what would conflict before anything is overwritten.
  5. Install and test it on your real eisy. "Install it." — registers, installs, and starts the plugin, reporting each stage separately. From here you can ask it to check status, read or write its configuration, start/stop/restart its service, or call its own features — the same tools a customer-facing conversation would use.
  6. Debug, push to GitHub, and package for the store — covered in detail below.

Setting up GitHub

eisy-ai automates the local git side of publishing your plugin, but it never creates a GitHub repository on your behalf — that part is deliberately left to you.

  1. Create a GitHub account, if you don't already have one, at github.com/join.

  2. Create a new, empty repository for your plugin (no README, license, or .gitignore — eisy-ai writes its own). Copy its URL (e.g. https://github.com/yourname/your-plugin.git).

  3. Make sure eisy itself can authenticate to GitHub. eisy-ai's push is plain git push, so eisy needs SSH access to your repository. The easiest way is to ask eisy-ai to set it up: "Set up GitHub access for https://github.com/yourname/your-plugin.git, my GitHub email is you@example.com." This writes a real private key plus SSH config on eisy, so it only runs once you've explicitly agreed. You must be signed in, and the GitHub email you give has to match the email you're signed in with (otherwise it stops and tells you how to fix that, since over SSH there's no other way to confirm whose account it is). It then:

    • Creates a key used only for that one repository (a GitHub deploy key, the default). Say so if you'd rather have one key for your whole GitHub account instead (an account key, which reaches every repository you own, not just this one).
    • Trusts GitHub's host key, only after verifying its fingerprint against GitHub's own published one, and tests the connection.
    • Gives you the public key, a suggested title (eisy - <your eisy's hostname>, or your own if you asked for one), and exact steps for the one part it can't do: adding the key on GitHub.com. For a deploy key: open the repository's own Settings → Deploy keys → Add deploy key, paste the key, and tick Allow write access (or the push will be rejected). For an account key instead: your account's Settings → SSH and GPG keys → New SSH key, paste the key there.
    • Once you've added it, ask eisy-ai to try again — it verifies the connection and, now that it succeeds, gives you the SSH form of your repository's URL (ssh_remote_url) to use in step 4 below.

    It's safe to ask again at any time; if access already works it changes nothing.

    Prefer to do it by hand? An SSH key is the simplest option, and since you talk to eisy-ai through chat rather than a terminal, you generate and read it by asking eisy-ai to run the commands for you (this is the same host-shell capability described under Diagnostics in customer mode; nothing special needs to be enabled for it in developer mode). These are the same steps eisy-ai automates above:

    1. Check whether eisy already has a key. Ask: "Run ls -la ~/.ssh for me." If you already see an id_ed25519/id_rsa pair listed, skip to sub-step 3.

    2. Generate a new key pair on eisy, with no passphrase (there's no interactive prompt to type one into later, since eisy-ai runs commands non-interactively):

      "Run this for me: ssh-keygen -t ed25519 -C "your-email@example.com" -f ~/.ssh/id_ed25519 -N """

      This writes a private key (~/.ssh/id_ed25519, which never leaves eisy) and a public key (~/.ssh/id_ed25519.pub, safe to share — this is the one that goes to GitHub).

    3. Ask eisy-ai to show you the public key: "Run cat ~/.ssh/id_ed25519.pub and show me the output." Copy the single line it returns (starts with ssh-ed25519).

    4. Add it to your GitHub account:

      • On GitHub.com, click your profile photo → Settings → SSH and GPG keys (in the left sidebar, under "Access") → New SSH key.
      • Give it a Title that identifies this eisy (e.g. eisy - living room), leave Key type as Authentication Key, and paste the public key you copied into the Key field.
      • Click Add SSH key (GitHub may ask you to re-enter your password or 2FA code to confirm).
    5. Pre-trust GitHub's host key, so the first real push doesn't hang waiting for an interactive "are you sure you want to continue connecting?" prompt that eisy-ai's non-interactive shell tool can never answer:

      "Run ssh-keyscan -t ed25519 github.com >> ~/.ssh/known_hosts for me."

    6. Test the connection: "Run ssh -T git@github.com and show me the result." A successful setup replies with something like "Hi yourname! You've successfully authenticated, but GitHub does not provide shell access." — that message is expected and means authentication worked.

    7. Use the SSH form of your repository's URL (not the https:// one) so git actually uses this key: git@github.com:yourname/your-plugin.git instead of https://github.com/yourname/your-plugin.git.

    Prefer HTTPS instead? The alternative is a personal access token (github.com/settings/tokens) stored in git's own credential store on eisy — ask eisy-ai to run git config --global credential.helper store once, then the first push will prompt for your username and the token as the password and remember it after that. SSH is generally simpler here precisely because it needs no stored password at all.

  4. Ask eisy-ai to push your plugin, giving it the ssh_remote_url step 3 handed back (for a deploy key it looks like git@github.com-yourname-your-plugin:yourname/your-plugin.git; for an account key or the manual steps, git@github.com:yourname/your-plugin.git): "Set up the GitHub repo at <that ssh_remote_url>." From there it will:

    • Run git init (skipped if the plugin directory is already a repo).
    • Write a .gitignore that guarantees your local secrets file (.iox_env) is never committed.
    • Make the first commit, using your developer identity from step 1 of "Prompting" above.
    • Add your repository URL as the origin remote and push.

    This only happens with your explicit go-ahead, and is safe to run again later — it skips anything already done. If you forget the remote URL, eisy-ai tells you to create the empty repo yourself and re-ask with its URL.

  5. Everyday git work (status, diffs, log, stashing, pulling, ad hoc commits) isn't a special eisy-ai feature — just run ordinary git commands in your plugin's directory, or ask eisy-ai to run them for you via its shell-command tool.

VS Code integration

Once your plugin is installed on a real eisy, ask eisy-ai to set up debugging — e.g. "set up VS Code debugging for this plugin." It will:

  1. Read the live credential (PG3INIT) the installed service is actually running with, and write it to a local .iox_env file in your plugin's directory — the exact same credential the live service uses, so a debugger attached locally behaves identically to the real thing.

  2. Write a .vscode/launch.json debug configuration pointing at your plugin's main.py and loading that .iox_env file.

  3. Open your plugin's folder in VS Code, open the Run and Debug panel, select the generated configuration, and start debugging — you can now set breakpoints and step through your plugin's code while it runs against the real eisy.

VS Code's Run and Debug panel, showing the generated eisy-ai plugin launch configuration selected

This credential rotates every time the live service actually restarts, so it's safe (and sometimes necessary) to redo this step after a restart — just ask again and both files get rewritten.

Remote VS Code support

Beyond debugging from your own machine, eisy-ai can also set up your eisy itself to accept a direct VS Code Remote-SSH connection, so you can open your plugin's files and run VS Code's own tooling right on the hub instead of only attaching a debugger to it remotely.

The first time you ask for VS Code setup (see above), eisy-ai also offers this one-time, hub-side step: installing the packages and environment VS Code's Remote-SSH extension needs on your eisy. Because this makes a real change on the hub itself, it always asks for your explicit confirmation first — it won't do this silently as a side effect of the local debug setup above.

Once you confirm, eisy-ai runs the hub-side setup and gives you a ready-to-use SSH config snippet, built from your eisy's own real address and name, for example:

Host my-eisy
    HostName 192.168.1.50
    User admin
    SetEnv BASH_ENV=".bash_linux"
  1. Add that block to your own machine's ~/.ssh/config file.
  2. In VS Code, install the Remote - SSH extension if you haven't already.

VS Code Install Remote SSH extension

  1. Open VS Code's Remote-SSH host picker and connect to my-eisy (or whatever name your snippet used).

VS Code's Remote-SSH "Connect to Host" picker showing the eisy host entry

  1. Once connected, open your plugin's folder directly on my-eisy — you're now running VS Code against the real filesystem and Python environment your plugin executes in, not a local copy.

This eisy-side setup only needs to be done once per plugin output root; eisy-ai tracks that it's already been done and won't ask again unless you explicitly ask it to redo it.

Packaging for the plugin store

Once your plugin works the way you want, ask eisy-ai to package it — e.g. "package this plugin for the store." This builds a ready-to-share archive (code, profile, README, license, requirements, install script) named after your plugin and its version, always leaving out dev-only clutter (your local secrets file, certificates, debug configuration, test files, persisted/session data) — and refuses outright if anything that looks like a real secret value turns up in a file that would be included. Packaging is safe to redo any time; a new archive replaces the old one. Actually submitting the archive to the plugin store is still a manual step you do yourself.

Remember: submitting to the store requires being a vetted developer. As noted under Navigating the Development tab, you can package and test your plugin locally without any special status, but moving it from Local Plugins to My Published Plugins requires that vetting. If you haven't gone through that yet, contact us at universal-devices.com/my-tickets first.

Connecting VS Code to your eisy

If you use VS Code's Remote-SSH to work on your eisy (see Remote VS Code support above), these are the last two steps once you have chosen your eisy in the host picker:

  1. When prompted, choose Linux. In the terminal, click the details link and enter the password for your eisy.

    Entering the eisy password in the terminal

  2. Once connected, click the Open Folder button and choose your plugin's folder on your eisy. You are now working against the real filesystem and Python environment your plugin runs in, not a local copy.

    Choosing a folder on eisy with Open Folder

Using MCP (Model Context Protocol)

What MCP is and when to use it

MCP is a standard way for outside AI tools — Claude Desktop, an IDE assistant, or any other MCP-capable client — to call eisy-ai's tools directly, over the network, without going through eisy-ai's chat window or its LLM at all. The client's own AI does the thinking; eisy-ai simply provides the tools (device control, status, routines, plugin authoring, and so on).

Use it if you'd rather drive your eisy from a tool you already work in. If you just want to chat with eisy-ai in eisy-ui, you don't need MCP, and it stays off by default.

Prerequisites

  • mcp_server set to true in eisy-ai's configuration (see 3.3).
  • Your eisy's own username and password. MCP clients sign in with the same credentials that already protect eisy's web UI and REST API, using a standard OAuth 2.1 login. There is no unauthenticated access and no separate "MCP password" to create.
  • "Allow API Access" enabled for the eisy-ai plugin. This is a one-time setting on eisy-ai's own configuration screen in eisy-ui (it is not part of the JSON configuration). MCP's sign-in needs a direct connection to the eisy that bypasses the normal plugin relay, and this permission is what allows it. Without it, sign-in can never complete no matter how many times you retry; eisy-ai's log will say "ISY access not authorized."
  • No LLM API key is needed. MCP tool access works even if you haven't configured one.

Turn it on

  1. Open eisy-ai's Configuration tab (as in 1.2) and change "mcp_server": false to "mcp_server": true. It must be the literal value true; anything else, or leaving it out, keeps MCP off.
  2. Enable Allow API Access for eisy-ai on that same screen.
  3. Click Save Changes, then restart the eisy-ai plugin.

Turning this on opens a network port (8260) on your eisy. It's protected by your eisy login, but once a client signs in it gets the same tool access a logged-in chat session has — including running commands on the host and full device control. Only connect clients you trust.

Connect a client

Claude Desktop is used as the example; other MCP clients follow the same pattern.

  1. Add a remote MCP server pointing at your eisy, for example https://eisy.local:8260/mcp.
  2. The client discovers and registers itself automatically, then shows a login form. Sign in with your eisy's username and password.
  3. Once signed in, every tool from the profiles you have enabled (unified, plugin_authoring, or both) is available to that client.

Your eisy uses its own TLS certificate, so a client may warn about it the first time you connect.

What's deliberately unavailable

Over MCP, deleting a device or a plugin only ever returns a preview — it is never actually carried out, no matter what confirmation the client sends. If you really want to delete something, do it in eisy-ui or through eisy-ai's own chat, which asks you to confirm.

Troubleshooting

Symptom Likely cause
The client can't connect at all mcp_server isn't exactly true, or you haven't restarted eisy-ai since changing it.
The login form appears but sign-in never completes; the log says "ISY access not authorized" Allow API Access isn't enabled for the eisy-ai plugin (see 3.2).
Login is rejected Use your eisy's own username and password, the same ones as eisy-ui.
eisy-ai's chat shows a notice about running in "MCP-only mode" Expected: mcp_server is on but no LLM API key is configured. MCP works fully; add a key and restart if you also want web chat and plugin authoring.