feat: introduce mnie

This commit is contained in:
Shotaro Nakamura
2026-06-21 21:37:07 +09:00
parent 614ea8a992
commit fed3ac1b61
104 changed files with 1815 additions and 218 deletions
+23 -12
View File
@@ -1,14 +1,25 @@
# cSBI
# Mnie
[![技術者倫理 遵守済み](https://img.shields.io/badge/%E6%8A%80%E8%A1%93%E8%80%85%E5%80%AB%E7%90%86-%E9%81%B5%E5%AE%88%E6%B8%88%E3%81%BF-0a0a0a?style=for-the-badge&labelColor=ffffff)](https://技術者倫理.com)
A client for SBI-compatible servers. This project is not intended for use with a real SBI server.
Self-host finance management for running your own portfolio, trading, API key, OAuth, MCP, and CLI workflows.
## cSBI SDK
## Mnie SDK
## cSBIe
`@repo/mnie-sdk` connects to a Mnie server with an API key and exposes typed finance methods from `@repo/mnie-types`.
cSBIe is a web ui and server for managing SBI-compatible API.
## Apps
- `apps/mnie-app`: bundled server plus UI runtime
- `apps/mnie-server`: API, OAuth, MCP, RPC, storage, and provider session management
- `apps/mnie-ui`: web UI
## Packages
- `packages/mnie-types`: shared finance SDK interfaces
- `packages/mnie-sdk`: API-key SDK for Mnie
- `packages/mnie-cli`: CLI using `mnie-sdk`
- `packages/client-sbi`: SBI provider client
### Install
@@ -16,15 +27,15 @@ Before running, setup .env, refering `.env.example`.
#### With docker
Docker uses `CSBIE_KEYRING_BACKEND=sqlite` because platform keyrings are not available in
headless containers. Set `CSBIE_KEYRING_SECRET` in `.env` before saving SBI passkeys.
Docker uses `MNIE_KEYRING_BACKEND=sqlite` because platform keyrings are not available in
headless containers. Set `MNIE_KEYRING_SECRET` in `.env` before saving SBI passkeys.
docker-compose.yml:
```yaml
services:
csbie:
image: git.yutakobayashi.com/nakasyou/csbi:latest
mnie:
image: git.yutakobayashi.com/nakasyou/mnie:latest
ports:
- '18787:8787'
env_file:
@@ -36,15 +47,15 @@ services:
or
```bash
docker run --rm -it --name csbie \
docker run --rm -it --name mnie \
-p 18787:8787 \
--env-file .env \
-v "$PWD/data:/app/data" \
git.yutakobayashi.com/nakasyou/csbi:latest
git.yutakobayashi.com/nakasyou/mnie:latest
```
#### With Nix
```bash
nix run 'git+https://git.yutakobayashi.com/nakasyou/csbi.git#csbie'
nix run 'git+https://git.yutakobayashi.com/nakasyou/mnie.git#mnie'
```