<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ephemerawiki.space/index.php?action=history&amp;feed=atom&amp;title=Help%3AEphemera_Agent%2FInstallation</id>
	<title>Help:Ephemera Agent/Installation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ephemerawiki.space/index.php?action=history&amp;feed=atom&amp;title=Help%3AEphemera_Agent%2FInstallation"/>
	<link rel="alternate" type="text/html" href="https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Installation&amp;action=history"/>
	<updated>2026-05-19T12:44:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Installation&amp;diff=4&amp;oldid=prev</id>
		<title>EphemeraAdmin: Import: Help:Ephemera Agent/Installation</title>
		<link rel="alternate" type="text/html" href="https://ephemerawiki.space/index.php?title=Help:Ephemera_Agent/Installation&amp;diff=4&amp;oldid=prev"/>
		<updated>2026-04-01T04:29:28Z</updated>

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