Help:Ephemera Agent/Installation
Requirements
- A MediaWiki installation (1.35 or later recommended)
- PHP 7.4+ with the cURL extension enabled (standard on most shared hosts)
- A web host serving PHP (Apache or Nginx)
- An API key from at least one supported AI provider (see Help:Ephemera Agent/LLM Providers)
Step 1 — Upload Server Files
Upload all files from the server/ directory of the release package to your MediaWiki installation directory — the same directory that contains api.php, index.php, and LocalSettings.php.
Files to upload:
mediawiki-agent.html— the main application UIproxy.php— MediaWiki API proxyllm-proxy.php— LLM provider proxywiki_api.php— wiki API wrapper (used by agent.php)context.php— context assembly pipelineclassify.php— task classificationagent.php— main orchestrator
After uploading, verify the proxy is reachable by visiting https://yourwiki.example.com/proxy.php. You should see: {"error":"Origin not allowed: "} — this is correct.
Step 2 — Create a Bot Password
The agent logs into your wiki using a Bot Password — a restricted credential safer than your main admin password.
- Log into your wiki as an administrator
- Go to Special:BotPasswords
- Enter a name for the bot (e.g.
EphemeraAgent) - Grant the following permissions:
- Edit existing pages
- Create, edit, and move pages
- Delete pages and revisions (optional)
- Protect pages (optional)
- Block users (optional)
- Import pages from file uploads (required for XML import — see note below)
- Click Create and note the generated password
- Your bot username will be:
YourWikiUsername@EphemeraAgent
- XML Import permission
- The
importuploadright is typically restricted to sysops. To grant it to your bot group, add this toLocalSettings.php: $wgGroupPermissions['bot']['importupload'] = true;
Step 3 — Open the Agent
Navigate to https://yourwiki.example.com/mediawiki-agent.html in your browser. You should see the Ephemera Agent interface.
Step 4 — Log In
- Click the WIKI tab in the left sidebar
- Enter your bot username (e.g.
Admin@EphemeraAgent) and bot password - Click LOGIN
- The green badge in the header confirms success
Step 5 — Enter an API Key
- The sidebar switches to the LLM tab after login
- Select your preferred AI provider
- Select a model
- Enter your API key, or load a keys file
- Type a task in the text area and press RUN or Ctrl+Enter
Adapting to a Different Wiki
To use Ephemera Agent with a wiki other than the default installation:
mediawiki-agent.html
Find these lines near the top of the <script> block:
<syntaxhighlight lang="javascript">
var WIKI_BASE_URL = "https://vagabondmedia.net/ephemera";
var WIKI_PROXY_URL = "proxy.php";
var LLM_PROXY_URL = "llm-proxy.php";
var AGENT_PROXY_URL = "agent.php";
</syntaxhighlight>
Change WIKI_BASE_URL to your wiki's base URL.
proxy.php
Find and update the local API URL: <syntaxhighlight lang="php"> $local_api = 'https://vagabondmedia.net/ephemera/api.php'; </syntaxhighlight>
Change it to point to your wiki's api.php.
Allowed Origins
Both proxy.php and llm-proxy.php restrict which domains can call them. Add your domain to the $allowed_origins array in both files.
Common Issues
- Login fails
- Check that the bot username is in the form
User@BotNameand that the bot password was copied exactly.
- Proxy returns “Origin not allowed”
- Add your site to the allowed origins list in
proxy.phpandllm-proxy.php.
- Agent page loads but generation fails
- Make sure at least one provider API key is loaded and a Generator model is selected.
- XML import is unavailable
- Confirm the bot account has the
importuploadright and that the right is enabled inLocalSettings.php.