Nextcloud app jocor_aichat — part of cloud.jo-cor.com
- PHP 65.8%
- Vue 13.3%
- CSS 11.9%
- JavaScript 9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| appinfo | ||
| css | ||
| img | ||
| js | ||
| lib | ||
| src | ||
| templates | ||
| tests | ||
| .gitignore | ||
| DEPLOY.md | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| vite.config.js | ||
AI Chat
Chat interface for multiple LLMs with live token and cost transparency
Modern chat interface for the models exposed by the aichat-mcp gateway.
- Conversation sidebar with search over the full history
- Model picker in the active chat, showing price and context window per model
- Live token counter and estimated cost, per conversation and per day
- Admin dashboard for global token usage, cumulative cost, and usage per user/model
Accounting design:
- Prices are versioned. A price change opens a new tariff row; historic rows are never rewritten, so old invoices stay reproducible.
- USD to EUR uses a static rate held in app config and written onto every ledger row, so correcting the rate never moves historic figures.
- The usage ledger is permanent. Chat history is subject to retention (default 365 days, per-user opt-out); the ledger is only detached, never deleted.
- Admins see cost aggregates only. No endpoint exposes message content to admins.
| Nextcloud app id | jocor_aichat |
| Version | 1.6.5 |
| Nextcloud | 30–34 |
| Licence | AGPL-3.0-or-later |
See it running
It runs on cloud.jo-cor.com. Ask Jo for an account (or register at cloud.jo-cor.com/apps/registration and wait for approval).
Run it on your own Nextcloud
cd /path/to/nextcloud/custom_apps
git clone https://git.jo-cor.com/jocor/nextcloud-jocor_aichat.git jocor_aichat
sudo -u www-data php ../occ app:enable jocor_aichat
The built JavaScript in js/ is committed, so it runs as cloned. Only when you change the sources:
npm ci && npm run build
Contribute
- Sign in at git.jo-cor.com with Sign in with jo-cor-cloud (your cloud.jo-cor.com account).
- Fork this repository, make your change on a branch, and open a pull request.
Invited contributors can also push over SSH; the connection details come with the invite.
Changes reach cloud.jo-cor.com only after review: the live server deploys from git, never from hand edits.