alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
opencrow: add openrouter api key
author
lassulus
date
7 months ago
(Mar 12, 2026, 4:57 PM CET)
commit
5b1dd8aa
5b1dd8aaeb15f9d4de0e165d374231228722f548
parent
fa37fd1a
fa37fd1addbef02ff12ed05a92f50337ae91b2ac
+24
-5
1 changed file
Expand all
Collapse all
Unified
Split
2configs
opencrow.nix
+24
-5
2configs/opencrow.nix
View file
Reviewed
···
33
33
];
34
34
};
35
35
36
36
-
clan.core.vars.generators.opencrow = {
36
36
+
clan.core.vars.generators.opencrow-matrix = {
37
37
prompts.matrix-access-token = {
38
38
-
description = "Matrix access token for @opencrow:lassul.us - register via synapse admin API using the registration_shared_secret";
38
38
+
description = "Matrix access token for @opencrow:lassul.us";
39
39
type = "hidden";
40
40
+
persist = true;
40
41
};
42
42
+
};
43
43
+
44
44
+
clan.core.vars.generators.opencrow-openrouter = {
45
45
+
prompts.openrouter-api-key = {
46
46
+
description = "OpenRouter API key for opencrow - get from https://openrouter.ai/keys";
47
47
+
type = "hidden";
48
48
+
persist = true;
49
49
+
};
50
50
+
};
51
51
+
52
52
+
clan.core.vars.generators.opencrow-env = {
53
53
+
dependencies = [
54
54
+
"opencrow-matrix"
55
55
+
"opencrow-openrouter"
56
56
+
];
41
57
files."opencrow.env" = { };
42
58
script = ''
43
59
cat > "$out/opencrow.env" << EOF
44
44
-
OPENCROW_MATRIX_ACCESS_TOKEN=$(cat $prompts/matrix-access-token)
60
60
+
OPENCROW_MATRIX_ACCESS_TOKEN=$(cat $in/opencrow-matrix/matrix-access-token)
61
61
+
OPENROUTER_API_KEY=$(cat $in/opencrow-openrouter/openrouter-api-key)
45
62
EOF
46
63
'';
47
64
};
···
71
88
OPENCROW_PI_WORKING_DIR = "/home/bot/opencrow";
72
89
OPENCROW_PI_SKILLS = "${opencrow}/share/opencrow/skills/web";
73
90
OPENCROW_PI_SKILLS_DIR = "/home/bot/skills";
91
91
+
OPENCROW_PI_PROVIDER = "openrouter";
92
92
+
OPENCROW_PI_MODEL = "openrouter/qwen/qwen-2.5-7b-instruct";
74
93
OPENCROW_HEARTBEAT_INTERVAL = "10m";
75
94
OPENCROW_SHOW_TOOL_CALLS = "1";
76
76
-
OPENCROW_SOUL_FILE = "${opencrow}/share/opencrow/SOUL.md";
95
95
+
OPENCROW_SOUL_FILE = "/home/bot/opencrow/SOUL.md";
77
96
PI_CODING_AGENT_DIR = "/home/bot/opencrow/pi-agent";
78
97
};
79
98
80
99
serviceConfig = {
81
100
EnvironmentFile = [
82
82
-
config.clan.core.vars.generators.opencrow.files."opencrow.env".path
101
101
+
config.clan.core.vars.generators.opencrow-env.files."opencrow.env".path
83
102
config.clan.core.vars.generators.mailserver-bot.files."mail.env".path
84
103
];
85
104
ExecStart = "${opencrow}/bin/opencrow";