Culture, Vision and Values

What you can expect from our culture and distributed work environment.

Vision, Strategy, Key Results

Vision

Thriving Communities 

ChatGPT Image May 20, 2025, 04_49_44 PM.png

Strategy 

Advancing Sustainable, Reliable, Affordable Energy through resilient Community Owned Microgrids. We build and operate these microgrids and teach others how to do the same. 

Future.jpeg

Key Results 

Completed

Now

Next

Later

Collaboration Tools

Overview

This page contains useful tips for working at NFE and for various tools we use. These tools can be found at dashboard.NearlyFreeEnergy.com

Email and Celandar with NextCloud 

Email and Calendar 

Documentation with Bookstack 

Wiki / Documentation  

Kimai for Time tracking 

Time tracking 

Company Website with Wordpress 

Website 

Group Chat with Matrix and Element 

Group chat 

Code Repository with Gitea 

Version Source Control 

Customer Help desk with Freescout 

Customer Help desk 

CRM with Espo 

Customer Relationship Management (CRM) 

AI Assistant with Claude

Claude can search, read, add to and update this Library for you. See Using the Library with Claude for the one-time setup.

Claude can also work with your Nextcloud mail, files, calendar, Deck, Talk and Notes. See Using Nextcloud with Claude to install the skill and set up your app password.

Project Management with Plane

You can access plane here and their documentation. 

Video Calls with Jitsi

Jitsi is an important part of GitLab’s strategy for communication between team members. As such, extra care needs to be given to ensure the safety and integrity of data. For how to use Jitsi, refer to their official documentation

Scheduling Meetings with Calcom

Most of our work is asynchronous but we'll occassionally need to meet with each other and with external stakeholders. This is what Calcom is for. It's Free Software like most of our tools so you can search online for more information on how to use it. Here's how you can set up your NFE account. 

In Nextcloud Calendar, hover over the link icon to the right of the calendar in question, e.g. Personal, and you see an edit icon. Click the edit icon:

image.png


You'll see a pop-up like the following. You will want to click the + for "Share link" and then clck the resulting clipboard icon that copies the link to the clipboard:

image.png


Then, you'll want to go to your Cal.com pop-up for configuring CalDav and paste the link:

image.png


Then continue the process of connecting to your Nextcloud calendar via CalDav, confirming event creation:

image.png


Complete the remaining steps. You can leave video settings for later. Confirm your availability times. Add a profile photo / avatar.

Values


Collaboration

We are better Together: If you want to go quickly, go alone but if you want to go far, go together

Curiosity

Always learning, frequently questioning and listening. 

Community 

Default to Openness. We want to learn and build in public so that others who care about what we are working on can also learn and consider contributing to our mission. They'll be a few things that need to be private like our customers contact information but we aim to be open about how and what we are working on. So when in doubt, just share it.

People first

Relationships count most, invest in them. We want to give reach other room to center our lives around family and friends, not our jobs. 

Managers of One

People need to be reminded more often than they need to be instructed. What it means to be a manager of one. 


Culture - how we work

Most of our work is asynchronous, this is the best way for people in different timezones, schedules and places to effectively collaborate. The people at Gitlab wrote a good guide on asynchronous work, please go read it. 

Here's some tips from Aaron

NFE is a Social Venture!

Our Identity

We, Nearly Free Energy (NFE), operate as a social enterprise — a mission-driven business committed to providing affordable, sustainable energy solutions while generating profit in a responsible and inclusive manner.

Our Purpose

Nearly Free Energy exists to:

Our Core Principles

We are guided by the following values:

People-Centered Impact

We prioritize the needs, dignity, and aspirations of the communities we serve. Our solutions are co-designed with our users, and we strive to create long-term value and inclusion.

Environmental Stewardship

We commit to environmental sustainability in our products, services, and operations — advancing renewable energy efficiency solutions to reduce reliance on fossil fuels.

Financial Sustainability

We operate for profit to ensure our longer-term viability. We reinvest earnings in innovation, infrastructure, and impact — balancing financial returns with social outcomes.

Transparency and Accountability

We share our goals, progress, and challenges openly with our stakeholders. We maintain integrity in our dealings with customers, employees, partners, and investors.

Community Partnership

We build local capacity and respect local knowledge. We collaborate with community organizations, public agencies, and other enterprises to maximize shared value.

Governance and Decision-Making

Reporting and Learning

Our Long-Term Vision

We envision a world where energy is:


Till every community can sustain their energy needs.  

Co-op Resources from Startup.coop

We also encourage you to check out our free Lean Co-op course if you haven’t already and see if there are local resources within the Cooperation Works network who can continue to help you refine your vision! 


We have also listed advocacy, technical assistance, financing and general startup resources on the build and resource pages of our website.  And have provided a list of additional resources below:

Using the Library with Claude

Claude, our AI assistant, can search, read, add to and update the NFE Library for you through the "NFE Library" skill. This page explains the one-time setup and how to use it well.

What Claude can do with the Library

Claude only sees what your own BookStack account can see, and anything it publishes appears under your name in the page history, exactly as if you had edited it yourself.

One-time setup

You need three things:

  1. The Claude desktop app. The skill only works in chats opened in the Claude desktop app on your computer (not in the browser or on your phone alone), because your token is kept on your computer. This will change once we host a shared Library connector.
  2. API access in BookStack. Your BookStack role needs the "Access System API" permission. If you don't see an API Tokens section on your BookStack profile, ask Aaron to enable it.
  3. Your personal API token, saved in a private file on your computer:
    1. In a Claude desktop chat, ask something like "Search the NFE Library for our Collaboration Tools."
    2. The first time, Claude asks for permission to access a folder on your computer and creates the file ~/.config/nfe-library/credentials.env.
    3. In BookStack, go to your profile (top right) → My Account / Edit Profile → API Tokens → Create Token. Set an expiry date about 90 days out.
    4. Open the file (on a Mac: Finder → Go → Go to Folder… → ~/.config/nfe-library, then open credentials.env with TextEdit), paste the Token ID and Token Secret after the = signs, and save.
    5. Tell Claude "done". It will confirm the connection works.

When your token expires, create a new one and replace the values in the same file.

Keeping your token safe

Tips for good results

Troubleshooting

What you see What to do
Claude says the chat isn't linked to your computer Open the chat in the Claude desktop app and send a message there.
"No credentials found" or empty values Make sure you saved credentials.env with both values filled in.
Error 401 The token is wrong or has expired. Create a new one and update the file.
Error 403 Your BookStack role is missing "Access System API". Ask Aaron.
Claude can't reach the Library Let Aaron know; the server may be down or Claude's network settings may need checking.

For admins

Last reviewed: 19 October 2026 by Aaron Tushabe

Using Nextcloud with Claude

Claude, our AI assistant, can work with your Nextcloud for you: mail, files, calendar, contacts, Deck, Talk, Notes and Nextcloud Office documents. It does this through the "nextcloud-api" skill, which calls Nextcloud's own API directly. This page explains the one-time setup and how to use it well.

What Claude can do with Nextcloud

Claude only sees what your own Nextcloud account can see. Anything it changes is done as you.

One-time setup

The skill is set up for everyone already; the only thing you need to do yourself is create your app password (step 3). In full, you need three things:

  1. Claude on your own computer. The skill works in the Claude desktop app (Code tab) or in Claude Code, on macOS, Linux or Windows (with WSL or Git Bash). Your app password stays in a file on your computer.
  2. The skill. It's already set up for everyone in our Claude organisation, so there's nothing to install. If it doesn't show up for you (for example, in a Claude Code setup outside the organisation), download nextcloud-api.skill from the attachments on this page (paperclip icon, top right). Open it and click Save skill, or unzip it into ~/.claude/skills/.
  3. Your personal Nextcloud app password, saved in a private file on your computer:
    1. In a Claude chat, ask something like "Using Nextcloud, what's on my calendar this week?"
    2. The first time, Claude creates the file ~/.config/nextcloud-api/credentials.env, with your Nextcloud username filled in and the password left blank.
    3. In Nextcloud, go to your avatar (top right) → Personal settings → Security → Devices & sessions. Type claude-api as the app name and click Create new app password. Copy the password. It's only shown once.
    4. Open the file. On a Mac: Finder → Go → Go to Folder… → ~/.config/nextcloud-api, then open credentials.env with TextEdit. Paste the password straight after NEXTCLOUD_APP_PASSWORD=, with no spaces or quotes, and save.
    5. Tell Claude "done". It will confirm that it can sign in as you.

To revoke access, delete the claude-api entry under Devices & sessions.

Keeping your password safe

How Claude handles changes

Tips for good results

Troubleshooting

What you see What to do
"No Nextcloud app password found" Fill in NEXTCLOUD_APP_PASSWORD in ~/.config/nextcloud-api/credentials.env and save.
"File does not exist" when opening the file The .config folder is hidden. Use Finder → Go → Go to Folder…, and make sure you didn't copy a trailing full stop.
Error 401 The app password is wrong or was revoked. Create a new one and update the file.
A mail folder shows 0 messages or "not cached" Claude syncs it automatically. If it still looks wrong, open the folder once in Nextcloud Mail.
A mail filter you want isn't available Sieve filtering is off for that account. It's under Mail → account settings → Sieve server → Enable sieve filter. Claude will ask before turning it on.
The mcphub Nextcloud tools return "Invalid request parameters" That's the separate mcphub connector, not this skill. Use this skill instead, and let Aaron know so mcphub can be checked.

For admins

Last reviewed: 20 October 2026 by Aaron Tushabe (skill now set up for the whole organisation)

Roles at NFE

Roles at NFE

NFE has three roles. Most people hold one; some hold two; in rare cases, one person takes on all three.

Role What they do Durable skill
IC (builder / operator) Build or operate the company, working with the tools Judgement, taste, creativity
DRI Own customer outcomes and assemble ICs to deliver them Ownership, accountability
Player coach Build the capability and capacity of the people around them Coaching, empathy, building human capacity

1. IC: builder / operator

Every IC is a manager of one. You own your work from start to finish without needing daily check-ins. You get clear objectives and the freedom to decide how you reach them. When you can't find an answer, you look for it yourself first, ask in the open if you're still stuck, and write down what you learn in the Library.

Salespeople, engineers, designers, product people: anyone working hands-on with the tools to build or operate the company.

ICs are augmented, with access to agents. One person can now do the work that a team, or 10 people, did in the past.

Durable skill: judgement, taste, creativity.

Leverage

The strongest ICs don't just produce more themselves. They do work that makes everyone else faster:

2. DRI: Directly Responsible Individual

Owns customer outcomes. A DRI:

Durable skill: ownership and accountability. The question every DRI can answer: what do you lead, and what are you ultimately responsible for?

How DRIs make decisions, and when approvals are needed, is covered in Directly Responsible Individuals.

Once a DRI decides, everyone commits to carrying out the decision, including people who disagreed. You can still argue to change it, but take that to the DRI, and keep executing while you do.

3. Player coach

What we would call managers today. Player coaches build the capability and capacity of other people. Instead of telling them how to do it, they show them how to do it.

Durable skill: building human capacity and coaching, with the empathy and soft skills great managers are known for.

Holding more than one role

Roles combine: an IC can be a player coach, and a DRI can be a player coach. In rare cases one person takes on all three.

Further reading

Using the NFE electrical toolkit with Claude

Claude, our AI assistant, can read an architect's floor plan, check our electrical drawings and lay out devices through the NFE electrical toolkit, an open-source program NFE wrote that runs on your own computer. Claude names the rooms, device types and rules; the toolkit works out every position and writes only to a separate overlay file on NFE layers. It never writes to the architect's drawing. This page covers installing the toolkit, connecting it to Claude, the propose-review-approve workflow and plotting sheet PDFs. For what it achieved on LSHA, see the phase 1 pilot.

What Claude can do with it

One-time setup

You need three things:

  1. Claude Code or the Claude desktop app on your own computer, signed in with your NFE Team seat. If you don't have a seat yet, ask Aaron. The toolkit has been tested on macOS; Windows is untested so far.
  2. Python 3.11 or newer, and git.
  3. LibreDWG, the open-source DWG converter. On a Mac with Homebrew, run brew install libredwg. On Linux, install your distribution's libredwg package. On Windows, LibreDWG publishes its own builds; if they are not on your PATH, point the toolkit at them with the NFE_DWG2DXF, NFE_DXF2DWG and NFE_DWGREAD environment variables.

Install

In Terminal, run these one at a time:

cd ~
git clone https://github.com/Nearly-Free-Energy/nfe-electrical-toolkit.git
cd nfe-electrical-toolkit
python3 -m venv .venv
.venv/bin/python -I -m pip install -e ".[test]"
.venv/bin/python -I -m pytest -q

The last command runs the tests. 12 should pass; the 4 that need the LSHA F6 drawing are skipped unless you have it. Always run the toolkit's Python with -I (isolated mode), so that nothing in a drawing folder can be imported by accident.

Your drawings and outputs go in a work folder outside the repository: ~/nfe-electrical-work in the examples below. Keeping it outside means client drawings can never be committed by mistake.

Connect Claude Code

Run this once in Terminal. --scope user makes the tools available in every project:

claude mcp add nfe-electrical --scope user -- ~/nfe-electrical-toolkit/.venv/bin/python -I -m nfe_electrical.mcp_server --workdir ~/nfe-electrical-work

Then start a new Claude Code session, because MCP servers only connect when a session starts. claude mcp list should show nfe-electrical as connected.

Connect Claude Desktop

Add the server to Claude Desktop's config file, claude_desktop_config.json:

Use full paths, replacing YOUR-NAME with your user name:

{
  "mcpServers": {
    "nfe-electrical": {
      "command": "/Users/YOUR-NAME/nfe-electrical-toolkit/.venv/bin/python",
      "args": ["-I", "-m", "nfe_electrical.mcp_server", "--workdir", "/Users/YOUR-NAME/nfe-electrical-work"]
    }
  }
}

If the file already has an mcpServers section, add the nfe-electrical entry inside it instead of starting a second one. Quit Claude Desktop completely and reopen it. On Windows, the command is ...\nfe-electrical-toolkit\.venv\Scripts\python.exe (untested).

Check it works

Ask Claude: "Using the NFE electrical toolkit, list the device types you can place." It should answer from the toolkit's list_device_types tool.

Working on a floor: propose, review, approve

Claude doesn't write anything until you approve it. Every tool that adds to the overlay does a dry run unless told otherwise. A typical session:

  1. Open the floor. "Open ~/Drawings/LSHA/F6.dwg as F6." The toolkit copies the drawing into ~/nfe-electrical-work/input/F6/, makes the copy read-only and converts it. Your original is never opened for writing. Check the units and the plotted base copy it reports. If the job isn't under BS 7671, say so: "…as F6, under IEC 60364."
  2. Find the rooms. "Find the rooms and show me the room map." Check that every room you need was found and named. Labels the toolkit couldn't bound are listed.
  3. Run the checks. "Run the checks and list the errors." Title blocks, legends and device counts. The checks only read.
  4. Ask for a proposal (dry run). "Propose bedside sockets for both bedrooms with pair:bed_head", or "Apply the rules in ~/nfe-electrical-toolkit/rules/bs7671/apartment_type_a_small_power.yaml to unit W, as a dry run." Claude reports what would go where, room by room, with warnings such as "only 1 of 2 positions fit the rule". Nothing is written.
  5. See it drawn. A dry run gives a list, not a picture. To see the proposal, ask Claude to write it to a trial overlay (for example F6_trial) and show you the render: proposed devices in magenta over the grey plan, the engineer's existing symbols in blue. Your real overlay is untouched. A trial overlay is just a file in ~/nfe-electrical-work/F6/overlays/; delete it when you no longer need it.
  6. Approve, and only then write. "Approved. Write it to F6_small_power." Claude repeats the call with dry_run=false. To take something out, ask Claude to remove those items. Removal happens straight away, but only ever from the overlay.
  7. Compare and validate. "Compare unit W with the engineer's sockets" pairs each new socket with the nearest existing one. "Validate the F6_small_power overlay" re-reads it strictly before you hand it over.
  8. Plot the sheets (next section).

Rules for single placements include pair:bed_head (two either side of the bed head), wall:media_wall:3 (three on the media wall), perimeter:2, beside_door, centre and corners. Rule sets live in the repository under rules/bs7671/, and the reasoning behind them is in the Small-power rules playbook, BS 7671 (draft). In mirrored apartments, design and review one unit, then ask Claude to "mirror unit W onto unit E".

Sheet PDFs: the deliverable

DXF + PDF is NFE's standard deliverable. Once the overlay is approved:

Check every sheet by eye before you issue it. For now the toolkit does not update the title block's drawing number or revision table, ezdxf skips one multiline text per sheet, and logos (OLE objects) are not drawn. An engineer's review of the overlay and the PDFs is also what closes gate 1 of the move off AutoCAD.

Keeping client drawings safe

Tips for good results

Troubleshooting

What you see What to do
Claude has no nfe-electrical tools Start a new Claude Code session, or quit and reopen Claude Desktop. Check claude mcp list.
The server shows "connection closed" or failed Run the server's command by hand in Terminal to see the real error. See Claude Code: MCP server shows connection closed.
dwg2dxf not found Install LibreDWG, or set NFE_DWG2DXF to the program's full path.
"floor 'F6' is not open" Each new Claude session starts empty. Open the floor again; it's quick, because the conversion is cached.
A rule set is refused It was written for a different standard from the job's. Reopen the floor with the right standard, or use a rule set written for that standard.
Positions are far off, or the plan looks the wrong size Ask Claude for the floor report's units, which shows declared and detected units. Some LSHA files say metres but are drawn in millimetres. Report anything odd to the toolkit's owner.

Updating

cd ~/nfe-electrical-toolkit
git pull
.venv/bin/python -I -m pip install -e ".[test]"

Then start a new Claude Code session, or restart Claude Desktop.

For maintainers

Last reviewed: 21 October 2026 by Aaron Tushabe

Using Element with Claude

Claude, our AI assistant, can read and post in our Element (Matrix) rooms at matrix.nearlyfreeenergy.com as you. It does this through the "nfe-element" skill. This page covers the one-time setup, including the device-verification step that trips people up, and how to use it well.

What Claude can do in Element

Everything is posted under your name, and Claude only sees the rooms you're in. Claude shows you the exact text and waits for your yes before posting.

One-time setup

The skill is already set up for everyone in our Claude organisation, so there's nothing to install. You need to do three things once on each computer: install the Matrix library, log in, and verify the new session.

1. Install the Matrix library

Ask Claude to "set up the nfe-element skill". It installs the Matrix library into its own private Python environment at ~/.config/nfe-element/venv.

2. Log in

Claude gives you a login command to run in a terminal. Press Enter to accept the NFE homeserver, then enter your Matrix ID (@first.last:matrix.nearlyfreeenergy.com) and your password. Type the password yourself in the terminal, never in the chat. Only a login token is kept, in ~/.config/nfe-element/credentials.json, readable by you alone.

Posting in rooms works as soon as you've logged in.

3. Verify the new session (needed to read encrypted rooms)

Most of our rooms, including product, general and learning, are encrypted. Until you verify Claude's session, it cannot read new messages there; they show as [undecryptable …].

Don't use emoji verification. It doesn't work with this skill. Tapping Verify by emoji on the phone (or in Element Desktop) never completes: Claude's session cannot respond to it, and Element quietly gives up. Use manual verification instead:

  1. Ask Claude to run the nfe-element whoami command. It prints a line like: /verify ABCDEFGHIJ abc123…fingerprint…xyz
  2. Open Element Desktop or app.element.io. Not the phone app, which doesn't support this command.
  3. Paste that line into the message box of any room and press Enter. It's a command, so nobody else sees it.
  4. Element confirms the session is verified. Under Settings → Sessions, claude-nfe-element now shows a green shield.

The fingerprint isn't secret. It's the public key of Claude's session on your computer.

What to expect

Keeping your account safe

Troubleshooting

What you see What to do
matrix-nio is missing The library isn't installed for the Python running the script. Ask Claude to use ~/.config/nfe-element/venv/bin/python.
externally-managed-environment from pip Homebrew Python blocks pip --user. Install into the venv (step 1).
No available formula with the name "libolm" Expected. libolm isn't needed any more (step 1).
Verify by emoji closes or never shows emoji Expected. Use manual /verify from Element Desktop or the web (step 3).
/verify isn't recognised You're on the phone app. Use Element Desktop or app.element.io.
Encrypted messages show [undecryptable …] Either the session isn't verified yet (step 3), or the message is older than your login.
"Not logged in on this machine" Run the login step (step 2).
Someone wasn't notified when Claude named them Their name went out as plain text. Ask Claude to tag them; from version 0.1.3 the skill sends a real mention.
Claude has two skills called nfe-element You have a personal copy as well as the organisation's. Remove your personal copy in Claude's skills settings, so the organisation version is the only one.

For admins

Last reviewed: 22 October 2026 by Aaron Tushabe (macOS setup, manual verification, mentions in 0.1.3)

Shared files: Nextcloud team folders

Put shared work in a team folder. Don't share files one by one.

Team folders are Nextcloud's version of Google's shared drives. They belong to NFE rather than to one person, and the group you're in decides which ones you can open. Join a group and you see its folders; leave it and they're gone. Nobody has to share or unshare individual files.

Our team folders

Team folder What goes in it Who can open and edit it
NFE Business Sites and customers (Sezibwa Rentals, Pearl Marina), proposals, fundraising and pitch decks, partner and community updates, conference and market material NFE Everyone
NFE Product Metering, gateway and hardware: vendor spec sheets and quotes, meter data and exports NFE Everyone
NFE Team Meeting recordings, logos and icons, anything else for the whole team NFE Everyone
NFE Finance Tax, bank and company registration documents, supplier invoices and payments NFE Leads

The folders follow the Library's books (Business, Product, Team, Finance). If you know which book a page belongs in, you know which folder its files belong in.

Groups

Group Members (October 2026) Team folders
NFE Everyone Aaron, Hillary, Dansturn, Nickson, Tom, Dismas, Daphine, Esther NFE Business, NFE Product, NFE Team
NFE Leads Aaron, Hillary, Dansturn NFE Finance

A Nextcloud admin manages these groups in Nextcloud (Accounts). Joining or leaving a group follows the Access Management Policy. Team folders don't use the LDAP everybody group, because it also contains service and test accounts.

Working with team folders

What stays out

For admins

Set up on 29 October 2026 by Aaron Tushabe with Claude. Owner: the Security DRI. Checked in the quarterly access review.

Using ERPNext with Claude

Claude, our AI assistant, can work in ERPNext for you: look things up, run reports, prepare draft bills and journal entries, attach source documents, and send bills for approval. It does this through the "erpnext-api" skill, using your own ERPNext API key, so everything it prepares shows you as its owner. This page explains why that matters, the one-time setup, and how to use it well.

Why your own key

Until now Claude reached ERPNext only through the shared mcphub connector, which signs in as Administrator. That caused two problems:

With your own key, a bill Claude prepares for you is owned by you, and you can't approve it yourself. Claude can also only do what your own ERPNext roles allow.

What Claude can do in ERPNext

Claude only prepares drafts. Submitting, approving and cancelling remain people's decisions, made in ERPNext's workflow.

One-time setup

You need three things:

  1. Claude on your own computer. The skill works in the Claude desktop app (Code tab) or in Claude Code, on macOS, Linux or Windows (with WSL or Git Bash). Your key stays in a file on your computer.
  2. The skill. It's already set up for everyone in our Claude organisation, so there's nothing to install. If it doesn't show up for you, download erpnext-api.skill from the attachments on this page (paperclip icon, top right). Open it and click Save skill, or unzip it into ~/.claude/skills/.
  3. Your personal API key, saved in a private file on your computer:
    1. In a Claude chat, ask something like "Using ERPNext, which bills are awaiting approval?" The first time, Claude creates the file ~/.config/erpnext-api/credentials.env, with the key and secret left blank.
    2. Only a System Manager can make the key. At NFE that's the admin@nearlyfreeenergy.com account, so sign in with it yourself, or sit with whoever holds it (Aaron). Open your own user record (https://erpnext.nearlyfreeenergy.com/desk/user/<your email>) → Settings tab → API Access → Generate Keys.
    3. Copy the API Key and the API Secret. The secret is shown only once, in a pop-up.
    4. Open the file. On a Mac: Finder → Go → Go to Folder… → ~/.config/erpnext-api, then open credentials.env with TextEdit, or run code ~/.config/erpnext-api/credentials.env if you use VS Code. Paste the values straight after ERPNEXT_API_KEY= and ERPNEXT_API_SECRET=, with no spaces or quotes, and save.
    5. Tell Claude "done". It will confirm that ERPNext answers as you.

To revoke the key, click Generate Keys again on the same user record. The old secret stops working at once.

Keeping your key safe

How Claude handles changes

Tips for good results

Troubleshooting

What you see What to do
"No ERPNext API key found" Fill in ERPNEXT_API_KEY and ERPNEXT_API_SECRET in ~/.config/erpnext-api/credentials.env and save.
"File does not exist" when opening the file The .config folder is hidden. Use Finder → Go → Go to Folder…, and make sure you didn't copy a trailing full stop.
Error 401 The key or secret is wrong, or keys were generated again. Make a new pair and update the file.
Error 403, "does not have doctype access" Your ERPNext roles don't allow that action. For example, deleting a bill needs the admin, and approving needs Spending Approver.
Error 417 ERPNext rejected the data, for example an unknown field or a missing value. Claude reads the message and fixes the draft.
"Self approval is not allowed" Working as intended: someone else has to approve a bill you prepared.

For admins

Last reviewed: 29 October 2026 by Aaron Tushabe (skill set up for the whole organisation)

Using OpenEMS with Claude

Claude, our AI assistant, can now work with OpenEMS, NFE's SCADA. It can tell you how a site is doing, pull history and energy figures, read component settings, and prepare setting changes. It does this through the "nfe-openems" skill, signed in with your own OpenEMS (Keycloak) login. This page explains what it can do, the one-time setup, and the limits to know about.

What Claude can do in OpenEMS

Two things to know first

1. Changes can't reach the gateways through the Backend yet. Our gateways connect straight to the Backend's Edge Manager. OpenEMS 2026 expects them to come in through its BackendEdge relay, so anything the Backend sends down to a gateway fails. That covers setting changes, channel writes and the live system log, in Claude and in the OpenEMS UI alike. Reading works: status, live values, history, energy, exports and the Backend's copy of each configuration. Until the deployment is fixed, changes are made on the gateway itself (its local UI or REST API over ZeroTier) by the engineer responsible, and recorded here in the Library. When asked for a change, Claude shows the exact plan and says this.

2. Inside OpenEMS, everyone is the same user. You sign in with your own Keycloak account, so access can be given and taken away person by person. But the Backend keeps its gateway list in a simple file (Metadata.File), and every login becomes one built-in user, admin, with full rights on every gateway. OpenEMS therefore can't tell who changed what. Claude keeps a log of every change it makes on your computer (~/.config/nfe-openems/changes.log), and you should post a short note in the site's Element thread or Library page: who, what, why, and before → after.

One-time setup

You need three things:

  1. Claude on your own computer. The skill works in the Claude desktop app (Code tab) or in Claude Code, on macOS, Linux or Windows (with WSL). Your login stays on your computer.
  2. The skill. It's already set up for everyone in our Claude organisation, so there's nothing to install. If it doesn't show up for you, download nfe-openems.skill from the attachments on this page (paperclip icon, top right). Open it and click Save skill, or unzip it into ~/.claude/skills/.
  3. Your own OpenEMS login. It's the one you use at https://openems.nearlyfreeenergy.com. If you don't have one, ask a Keycloak admin to create a user for you in the openems realm. Please don't use the shared admin login for day-to-day work: then nobody can tell who did what.

Then sign in:

  1. In a Claude chat, ask something like "Using OpenEMS, is Sezibwa online?" The first time, Claude creates ~/.config/nfe-openems/credentials.env, with the username and password left blank.
  2. Choose how you want to sign in:
    • Type your password each day (more private). Claude opens a sign-in prompt in its Terminal panel, or asks you to run one in your own terminal. You type your username and password there; Claude never sees them. The sign-in lasts 12 hours.
    • Save your password in the file (more convenient). Open the file (on a Mac: Finder → Go → Go to Folder… → ~/.config/nfe-openems, then open credentials.env with TextEdit). Paste your username after OPENEMS_USERNAME= and your password after OPENEMS_PASSWORD=, with no spaces or quotes, and save. Claude then signs in again by itself when the 12 hours are up.
  3. Tell Claude "done". It confirms who you're signed in as, and until when.

Keeping your login safe

How Claude handles changes

Tips for good results

Troubleshooting

What you see What to do
"not signed in" (exit 2) The 12-hour sign-in ran out and no password is saved. Sign in again in the terminal, or save your password in the file.
"sign-in refused" Wrong username or password, or your Keycloak user is disabled. Try them at https://openems.nearlyfreeenergy.com.
"this Backend cannot pass requests down to its Edges" The known limit described above. Make the change on the gateway itself and record it.
A value shows null The gateway is offline, the value isn't sent to the Backend, or there's no such channel. Ask Claude to find the right channel.
Energy totals come back empty Expected for the _sum and battery counters at our sites. Ask for the energy worked out from power instead.
"no stored history" Nothing was recorded for that gateway or period, for example an old test rig that hasn't connected since.

For admins

Last reviewed: 2 November 2026 by Aaron Tushabe (skill set up for the whole organisation)