relayos 0.1.0a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- relayos-0.1.0a1/LICENSE +201 -0
- relayos-0.1.0a1/PKG-INFO +441 -0
- relayos-0.1.0a1/README.md +410 -0
- relayos-0.1.0a1/pyproject.toml +58 -0
- relayos-0.1.0a1/relayos/__init__.py +3 -0
- relayos-0.1.0a1/relayos/__main__.py +5 -0
- relayos-0.1.0a1/relayos/adapters/__init__.py +38 -0
- relayos-0.1.0a1/relayos/adapters/anthropic.py +74 -0
- relayos-0.1.0a1/relayos/adapters/base.py +67 -0
- relayos-0.1.0a1/relayos/adapters/deepseek.py +58 -0
- relayos-0.1.0a1/relayos/adapters/google.py +72 -0
- relayos-0.1.0a1/relayos/adapters/ollama.py +51 -0
- relayos-0.1.0a1/relayos/adapters/openai.py +58 -0
- relayos-0.1.0a1/relayos/cli/config_commands.py +301 -0
- relayos-0.1.0a1/relayos/cli/display.py +154 -0
- relayos-0.1.0a1/relayos/cli/main.py +1019 -0
- relayos-0.1.0a1/relayos/config.py +102 -0
- relayos-0.1.0a1/relayos/core/__init__.py +1 -0
- relayos-0.1.0a1/relayos/core/artifacts.py +150 -0
- relayos-0.1.0a1/relayos/core/capabilities.py +159 -0
- relayos-0.1.0a1/relayos/core/compiler.py +148 -0
- relayos-0.1.0a1/relayos/core/compress.py +156 -0
- relayos-0.1.0a1/relayos/core/conversation.py +231 -0
- relayos-0.1.0a1/relayos/core/identity.py +133 -0
- relayos-0.1.0a1/relayos/core/inbox.py +118 -0
- relayos-0.1.0a1/relayos/core/knowledge.py +321 -0
- relayos-0.1.0a1/relayos/core/planner.py +328 -0
- relayos-0.1.0a1/relayos/core/plugin.py +236 -0
- relayos-0.1.0a1/relayos/core/provider_registry.py +217 -0
- relayos-0.1.0a1/relayos/core/router.py +151 -0
- relayos-0.1.0a1/relayos/core/scheduler.py +191 -0
- relayos-0.1.0a1/relayos/core/schemas.py +91 -0
- relayos-0.1.0a1/relayos/core/session.py +250 -0
- relayos-0.1.0a1/relayos/core/state.py +341 -0
- relayos-0.1.0a1/relayos/core/team.py +113 -0
- relayos-0.1.0a1/relayos/core/worker.py +240 -0
- relayos-0.1.0a1/relayos/cost.py +125 -0
- relayos-0.1.0a1/relayos/mcp/client.py +145 -0
- relayos-0.1.0a1/relayos/memory/store.py +125 -0
- relayos-0.1.0a1/relayos/orchestrator/__init__.py +3 -0
- relayos-0.1.0a1/relayos/orchestrator/pool.py +260 -0
- relayos-0.1.0a1/relayos/orchestrator/scheduler.py +94 -0
- relayos-0.1.0a1/relayos/py.typed +0 -0
- relayos-0.1.0a1/relayos/server/__init__.py +1 -0
- relayos-0.1.0a1/relayos/server/api.py +307 -0
- relayos-0.1.0a1/relayos/terminals/__init__.py +77 -0
- relayos-0.1.0a1/relayos/terminals/adapters.py +238 -0
- relayos-0.1.0a1/relayos/terminals/base.py +158 -0
- relayos-0.1.0a1/relayos/terminals/scheduler.py +108 -0
- relayos-0.1.0a1/relayos/tui/__init__.py +1 -0
- relayos-0.1.0a1/relayos/tui/app.py +268 -0
- relayos-0.1.0a1/relayos/tui/focus.py +181 -0
- relayos-0.1.0a1/relayos/workflow/engine.py +140 -0
- relayos-0.1.0a1/relayos/workflow/models.py +64 -0
- relayos-0.1.0a1/relayos.egg-info/PKG-INFO +441 -0
- relayos-0.1.0a1/relayos.egg-info/SOURCES.txt +59 -0
- relayos-0.1.0a1/relayos.egg-info/dependency_links.txt +1 -0
- relayos-0.1.0a1/relayos.egg-info/entry_points.txt +10 -0
- relayos-0.1.0a1/relayos.egg-info/requires.txt +8 -0
- relayos-0.1.0a1/relayos.egg-info/top_level.txt +1 -0
- relayos-0.1.0a1/setup.cfg +4 -0
relayos-0.1.0a1/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
24
|
+
permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, at least one of
|
|
111
|
+
the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [2026] [jjjjjjjjnnjnn]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
relayos-0.1.0a1/PKG-INFO
ADDED
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: relayos
|
|
3
|
+
Version: 0.1.0a1
|
|
4
|
+
Summary: Persistent AI Workers for Developers — terminal-native AI workforce manager
|
|
5
|
+
Author: jjjjjjjjnnjnn
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/jjjjjjjjnnjnn/relayos
|
|
8
|
+
Project-URL: Repository, https://github.com/jjjjjjjjnnjnn/relayos
|
|
9
|
+
Project-URL: BugTracker, https://github.com/jjjjjjjjnnjnn/relayos/issues
|
|
10
|
+
Keywords: ai-workers,ai-team,tui,persistent-agents,multi-agent,llm,orchestration,mcp,ai,workflow,claude,gpt,gemini
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Requires-Dist: click>=8.0
|
|
24
|
+
Requires-Dist: pyyaml>=6.0
|
|
25
|
+
Requires-Dist: httpx>=0.27
|
|
26
|
+
Provides-Extra: server
|
|
27
|
+
Requires-Dist: fastapi>=0.110; extra == "server"
|
|
28
|
+
Requires-Dist: uvicorn>=0.29; extra == "server"
|
|
29
|
+
Requires-Dist: pydantic>=2.0; extra == "server"
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
<p align="center">
|
|
33
|
+
<picture>
|
|
34
|
+
<img src="https://img.shields.io/badge/RelayOS-v0.1.0a1-8B5CF6?style=for-the-badge" alt="RelayOS">
|
|
35
|
+
</picture>
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
<h1 align="center">RelayOS</h1>
|
|
39
|
+
|
|
40
|
+
<p align="center">
|
|
41
|
+
<strong>You use Claude, GPT, Gemini, DeepSeek, and local models.<br>
|
|
42
|
+
RelayOS makes them work together — automatically.</strong><br>
|
|
43
|
+
<br>
|
|
44
|
+
A terminal-native AI runtime that routes tasks to the right model,<br>
|
|
45
|
+
remembers project context across sessions, and saves you money.
|
|
46
|
+
</p>
|
|
47
|
+
|
|
48
|
+
<p align="center">
|
|
49
|
+
<a href="#-quick-start"><img src="https://img.shields.io/badge/Quick_Start-10B981?style=for-the-badge&logo=python" alt="Quick Start"></a>
|
|
50
|
+
<a href="#%EF%B8%8F-features"><img src="https://img.shields.io/badge/Features-3B82F6?style=for-the-badge" alt="Features"></a>
|
|
51
|
+
<a href="https://github.com/jjjjjjjjnnjnn/relayos"><img src="https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github" alt="GitHub"></a>
|
|
52
|
+
<a href="#-installation"><img src="https://img.shields.io/badge/pip_install_relayos-FF6F00?style=for-the-badge&logo=pypi" alt="Install"></a>
|
|
53
|
+
</p>
|
|
54
|
+
|
|
55
|
+
<p align="center">
|
|
56
|
+
<a href="README_ZH.md"><img src="https://img.shields.io/badge/中文-EA4335?style=flat-square" alt="中文"></a>
|
|
57
|
+
<a href="README_DE.md"><img src="https://img.shields.io/badge/Deutsch-FFD700?style=flat-square" alt="Deutsch"></a>
|
|
58
|
+
<a href="README_ES.md"><img src="https://img.shields.io/badge/Español-00C853?style=flat-square" alt="Español"></a>
|
|
59
|
+
<a href="README_FR.md"><img src="https://img.shields.io/badge/Français-1E90FF?style=flat-square" alt="Français"></a>
|
|
60
|
+
<a href="README_JP.md"><img src="https://img.shields.io/badge/日本語-FF4081?style=flat-square" alt="日本語"></a>
|
|
61
|
+
<a href="README_KR.md"><img src="https://img.shields.io/badge/한국어-03C75A?style=flat-square" alt="한국어"></a>
|
|
62
|
+
</p>
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## 👋 The Problem
|
|
67
|
+
|
|
68
|
+
You open 5 browser tabs. ChatGPT for reasoning, Claude for architecture, Gemini for research, DeepSeek for coding. You copy output from one, paste it into the next. You burn premium tokens on tasks a free model could handle.
|
|
69
|
+
|
|
70
|
+
**You waste 30% of your time managing tools instead of building.**
|
|
71
|
+
|
|
72
|
+
## 🎯 The Solution
|
|
73
|
+
|
|
74
|
+
RelayOS is the coordination layer that makes your AI tools work like a real team:
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
┌─ You ──────────────────────────────────────┐
|
|
78
|
+
│ │
|
|
79
|
+
│ relay session ask "Build a payment sys" │
|
|
80
|
+
│ │
|
|
81
|
+
└─────────────────────┬───────────────────────┘
|
|
82
|
+
│
|
|
83
|
+
┌─────────────────────▼───────────────────────┐
|
|
84
|
+
│ RelayOS │
|
|
85
|
+
│ │
|
|
86
|
+
│ 1. Research competitors → Gemini (FREE) │
|
|
87
|
+
│ 2. Design architecture → Claude │
|
|
88
|
+
│ 3. Implement the code → GPT │
|
|
89
|
+
│ 4. Security review → DeepSeek (CHEAP) │
|
|
90
|
+
│ 5. Document the API → Gemini (FREE) │
|
|
91
|
+
│ │
|
|
92
|
+
│ Total cost: $0.01 Time: 45s │
|
|
93
|
+
└──────────────────────────────────────────────┘
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Zero infrastructure.** `pip install relayos && relay`. No Docker, no server, no browser.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## ✨ What Makes RelayOS Different
|
|
101
|
+
|
|
102
|
+
| Feature | What It Does | Benefit |
|
|
103
|
+
|---------|-------------|---------|
|
|
104
|
+
| 🧠 **Smart Routing** | Auto-selects the best model for each task | Free models first, premium only when needed |
|
|
105
|
+
| 🔄 **Multi-Step Plans** | Decomposes tasks into execution graphs | One command, many AI models working together |
|
|
106
|
+
| 💾 **Project Memory** | Knowledge persists across sessions | Workers never forget what they learned |
|
|
107
|
+
| 💰 **Cost Control** | Per-model tracking + budget limits | No surprise bills |
|
|
108
|
+
| 🔌 **21 Terminal Types** | Claude, GPT, Gemini, DeepSeek, local, and 16+ more | Bring your own tools |
|
|
109
|
+
| ⌨️ **Terminal Native** | htop-style TUI, no browser needed | Stays in your workflow |
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## ⚡ Quick Start
|
|
114
|
+
|
|
115
|
+
### Installation
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
pip install relayos
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Try it — literally one command:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
relay
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Opens the control panel. Like `htop`, but for your AI team.
|
|
128
|
+
|
|
129
|
+
### Chat with any model
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
# Auto-routes to best model
|
|
133
|
+
relay session chat "Explain Kubernetes architecture"
|
|
134
|
+
|
|
135
|
+
# Or target a specific worker
|
|
136
|
+
relay session chat "Design this API" -w architect
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Execute a multi-step task
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
relay session ask "Build a JWT auth system in FastAPI"
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
RelayOS will automatically decompose, route, and execute across the best models for each step.
|
|
146
|
+
|
|
147
|
+
### Plan before you spend
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
relay session plan "Build a payment system"
|
|
151
|
+
# Shows cost estimates before execution
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Group discussion (multiple AI workers)
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
relay session group "Review this architecture"
|
|
158
|
+
# Each worker contributes: researcher → architect → reviewer
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Switch models instantly
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
relay use opencode # All tasks → OpenCode (free)
|
|
165
|
+
relay use mimo # All tasks → Mimo (free)
|
|
166
|
+
relay use claude # All tasks → Claude (premium)
|
|
167
|
+
relay use free # Free-first routing
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Project knowledge
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
relay project create my-app
|
|
174
|
+
relay session ask "Design the database" -p proj-id
|
|
175
|
+
relay session ask "Add caching later" -p proj-id # Knows previous decisions!
|
|
176
|
+
relay project knowledge proj-id # See accumulated knowledge
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## 🖥️ The TUI
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
Workers (1-9 select) │ Status
|
|
185
|
+
│ Profile: balanced
|
|
186
|
+
1 🧠 architect ○ idle │ Cost: $0.00
|
|
187
|
+
2 🔍 researcher ○ idle │ Pending: 0
|
|
188
|
+
3 ⭐ coder ○ idle │
|
|
189
|
+
4 🎯 reviewer ○ idle │ Actions
|
|
190
|
+
5 🐛 debugger ○ idle │ f=free b=balanced
|
|
191
|
+
│ o=opencode c=claude
|
|
192
|
+
═══════════════════════════════╪══════════════════════════════
|
|
193
|
+
9w 9i 0b | inbox:0 | $0.00 | [balanced] | q=quit
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
Keyboard-driven, no mouse needed. One key to switch profiles or workers.
|
|
197
|
+
|
|
198
|
+
---
|
|
199
|
+
|
|
200
|
+
## 🗺️ Capability Graph
|
|
201
|
+
|
|
202
|
+
When you type `relay session plan "Build a payment system"`, RelayOS generates:
|
|
203
|
+
|
|
204
|
+
```
|
|
205
|
+
Capability Graph: Build a payment system
|
|
206
|
+
Profile: balanced | Estimated cost: $0.0084
|
|
207
|
+
──────────────────────────────────────────────────────
|
|
208
|
+
[1] research Research requirements
|
|
209
|
+
gemini-2.5-flash FREE
|
|
210
|
+
|
|
211
|
+
[2] architecture Design system architecture
|
|
212
|
+
claude-sonnet-4-20250514 $0.0083 → research
|
|
213
|
+
|
|
214
|
+
[3] review Review architecture decisions
|
|
215
|
+
deepseek-chat $0.0002 → architecture
|
|
216
|
+
|
|
217
|
+
──────────────────────────────────────────────────────
|
|
218
|
+
Each step passes only relevant data (not full text).
|
|
219
|
+
~800 tokens/step, ~7x less than naive approaches.
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## 🔧 Supported Terminals (21 types)
|
|
225
|
+
|
|
226
|
+
Automatically detects what you have installed:
|
|
227
|
+
|
|
228
|
+
| Status | Terminal | Default Model |
|
|
229
|
+
|--------|----------|---------------|
|
|
230
|
+
| ✅ | **Claude Code** | claude-sonnet-4-20250514 |
|
|
231
|
+
| ✅ | **Mimo Code** | gpt-4o |
|
|
232
|
+
| ✅ | **OpenCode** | deepseek-chat |
|
|
233
|
+
| ✅ | **Pi Coding Agent** | gpt-4o |
|
|
234
|
+
| ✅ | **Cursor** | gpt-4o |
|
|
235
|
+
| ✅ | **OpenClaw** | gpt-4o |
|
|
236
|
+
| ✅ | **GitHub Copilot** | gpt-4o |
|
|
237
|
+
| ✅ | **HuggingFace CLI** | gpt-4o |
|
|
238
|
+
| ⬜ | OpenAI Codex | gpt-4o |
|
|
239
|
+
| ⬜ | Gemini CLI | gemini-2.5-flash |
|
|
240
|
+
| ⬜ | Aider | gpt-4o |
|
|
241
|
+
| ⬜ | ShellGPT | gpt-4o |
|
|
242
|
+
| ⬜ | Fabric | gpt-4o |
|
|
243
|
+
| ⬜ | ChatGPT CLI | gpt-4o |
|
|
244
|
+
| ⬜ | LLM CLI | gpt-4o |
|
|
245
|
+
| ⬜ | Kimi (Moonshot) | moonshot-v1-8k |
|
|
246
|
+
| ⬜ | Qwen CLI | qwen2.5:7b |
|
|
247
|
+
| ⬜ | Open Interpreter | gpt-4o |
|
|
248
|
+
| ⬜ | Continue | gpt-4o |
|
|
249
|
+
| ⬜ | Copilot Extension | gpt-4o |
|
|
250
|
+
| ⚡ | Custom | (configurable) |
|
|
251
|
+
|
|
252
|
+
**Add any CLI as a terminal:**
|
|
253
|
+
```bash
|
|
254
|
+
relayos plugin add my-tool -m gpt-4o
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
## 🔧 All Commands
|
|
260
|
+
|
|
261
|
+
| Command | What it does |
|
|
262
|
+
|---------|-------------|
|
|
263
|
+
| `relay` | Open control panel |
|
|
264
|
+
| `relay session chat` | Single AI conversation |
|
|
265
|
+
| `relay session ask` | Auto-decompose + execute |
|
|
266
|
+
| `relay session group` | Multi-worker discussion |
|
|
267
|
+
| `relay session plan` | Show capability graph |
|
|
268
|
+
| `relay session list` | Recent sessions |
|
|
269
|
+
| `relay use <terminal>` | Switch default terminal |
|
|
270
|
+
| `relay use <profile>` | Switch cost profile |
|
|
271
|
+
| `relay focus <worker>` | SSH into a worker |
|
|
272
|
+
| `relay team create` | Create team from template |
|
|
273
|
+
| `relay project create` | Create knowledge project |
|
|
274
|
+
| `relay project knowledge` | Show project memory |
|
|
275
|
+
| `relay plan "task"` | Show execution plan |
|
|
276
|
+
| `relay estimate "task"` | Show cost estimates |
|
|
277
|
+
| `relay run workflow.yaml` | Run YAML workflow |
|
|
278
|
+
| `relay config detect` | Scan installed terminals |
|
|
279
|
+
| `relayos plugin add` | Register a custom CLI |
|
|
280
|
+
| `relayos serve` | Web dashboard (optional) |
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
## 🏗️ Architecture
|
|
285
|
+
|
|
286
|
+
```
|
|
287
|
+
Terminal (relay / relayos)
|
|
288
|
+
│
|
|
289
|
+
▼
|
|
290
|
+
┌────────────────────────────────────────────┐
|
|
291
|
+
│ ConversationEngine │
|
|
292
|
+
│ (session routing + capability detection) │
|
|
293
|
+
└──────────────────┬─────────────────────────┘
|
|
294
|
+
│
|
|
295
|
+
┌──────────────────▼─────────────────────────┐
|
|
296
|
+
│ TaskGraphExecutor │
|
|
297
|
+
│ (schema-aware, artifact-passing, DAG exec) │
|
|
298
|
+
└──────────────────┬─────────────────────────┘
|
|
299
|
+
│
|
|
300
|
+
┌──────────────────▼─────────────────────────┐
|
|
301
|
+
│ ModelScheduler │
|
|
302
|
+
│ (15 models × 7 capabilities, cost-aware) │
|
|
303
|
+
└──────┬──────────────────────┬──────────────┘
|
|
304
|
+
│ │
|
|
305
|
+
┌──────▼──────┐ ┌─────────▼──────────┐
|
|
306
|
+
│ Adapters │ │ Knowledge Base │
|
|
307
|
+
│ (21 terms) │ │ (SQLite, project) │
|
|
308
|
+
└─────────────┘ └────────────────────┘
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
### Storage (all local, zero infrastructure)
|
|
312
|
+
|
|
313
|
+
```
|
|
314
|
+
~/.relayos/ ← Single directory, portable
|
|
315
|
+
├── config.yaml ← Your model/profiles config
|
|
316
|
+
├── state.db ← Project state + decisions
|
|
317
|
+
├── sessions.db ← Session history + messages
|
|
318
|
+
├── knowledge.db ← Cross-session memory
|
|
319
|
+
├── artifacts.db ← Structured step outputs
|
|
320
|
+
└── workers.db ← Persistent workers
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
### Design Philosophy
|
|
324
|
+
|
|
325
|
+
| Principle | Why |
|
|
326
|
+
|-----------|-----|
|
|
327
|
+
| **Terminal-first** | Developers live in the terminal. No browser needed. |
|
|
328
|
+
| **State, not chat** | Save decisions, not conversations. ~200x more compact. |
|
|
329
|
+
| **Capability routing** | Bind to task type, not model. Models change; tasks don't. |
|
|
330
|
+
| **Zero infrastructure** | Single process, local SQLite. No Docker, no Postgres, no Redis. |
|
|
331
|
+
| **Cost-awareness** | Free tiers first. Save money without thinking about it. |
|
|
332
|
+
|
|
333
|
+
---
|
|
334
|
+
|
|
335
|
+
## 📈 Version History
|
|
336
|
+
|
|
337
|
+
| Version | What |
|
|
338
|
+
|---------|------|
|
|
339
|
+
| **V0.1** | Model routing — 5 provider adapters, YAML workflows |
|
|
340
|
+
| **V0.2** | Terminal pool — multi-CLI, cost tracking |
|
|
341
|
+
| **V0.3** | Worker system — 8 roles, persistence, TUI |
|
|
342
|
+
| **V0.4** | State compiler — structured state, event sourcing |
|
|
343
|
+
| **V0.5** | Model scheduler — 15 models, 3 cost profiles |
|
|
344
|
+
| **V0.6** | Session system — chat/ask/group modes |
|
|
345
|
+
| **V0.7** | Capability graph — multi-step task decomposition |
|
|
346
|
+
| **V0.8** | Task graph execution — schema-aware artifact passing |
|
|
347
|
+
| **V0.9** | Cross-session memory — project knowledge base |
|
|
348
|
+
|
|
349
|
+
---
|
|
350
|
+
|
|
351
|
+
## 💪 Built With
|
|
352
|
+
|
|
353
|
+
| Component | Tech |
|
|
354
|
+
|-----------|------|
|
|
355
|
+
| **Language** | Python 3.10+ |
|
|
356
|
+
| **CLI Framework** | Click 8.0+ |
|
|
357
|
+
| **HTTP Client** | HTTPX 0.27+ |
|
|
358
|
+
| **Terminal UI** | Rich |
|
|
359
|
+
| **Storage** | SQLite (no external DB) |
|
|
360
|
+
| **Models** | 15 scored models, 21 terminal types |
|
|
361
|
+
| **License** | Apache 2.0 |
|
|
362
|
+
|
|
363
|
+
### Dependencies
|
|
364
|
+
|
|
365
|
+
| Library | License | Purpose |
|
|
366
|
+
|---------|---------|---------|
|
|
367
|
+
| [Click](https://palletsprojects.com/p/click/) | BSD-3-Clause | CLI framework |
|
|
368
|
+
| [PyYAML](https://pyyaml.org/) | MIT | YAML parsing |
|
|
369
|
+
| [HTTPX](https://www.python-httpx.org/) | BSD-3-Clause | HTTP client for model APIs |
|
|
370
|
+
| [Rich](https://rich.readthedocs.io/) | MIT | Terminal UI rendering |
|
|
371
|
+
|
|
372
|
+
### Credits
|
|
373
|
+
|
|
374
|
+
- **Claude Code** (Anthropic) — Primary development platform
|
|
375
|
+
- **OpenCode** — Terminal adapter & testing partner
|
|
376
|
+
- **MimoCode** — Terminal adapter for frontend workflows
|
|
377
|
+
- **OpenAI Codex** — Terminal adapter for coding tasks
|
|
378
|
+
- **ECC plugin system** — Agent orchestration patterns
|
|
379
|
+
- **MCP (Model Context Protocol)** — Tool integration protocol
|
|
380
|
+
|
|
381
|
+
---
|
|
382
|
+
|
|
383
|
+
## 📦 Installation
|
|
384
|
+
|
|
385
|
+
### pip
|
|
386
|
+
|
|
387
|
+
```bash
|
|
388
|
+
pip install relayos
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
### Optional: web dashboard
|
|
392
|
+
|
|
393
|
+
```bash
|
|
394
|
+
pip install relayos[server]
|
|
395
|
+
relayos serve --open
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
### From source
|
|
399
|
+
|
|
400
|
+
```bash
|
|
401
|
+
git clone https://github.com/jjjjjjjjnnjnn/relayos.git
|
|
402
|
+
cd relayos
|
|
403
|
+
pip install -e .
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
### Docker (web dashboard only)
|
|
407
|
+
|
|
408
|
+
```bash
|
|
409
|
+
docker build -t relayos .
|
|
410
|
+
docker run -p 8080:8080 -v $(pwd)/config:/root/.relayos relayos
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
## 🌐 Languages
|
|
416
|
+
|
|
417
|
+
- [English](README.md)
|
|
418
|
+
- [中文 (Chinese)](README_ZH.md)
|
|
419
|
+
- [Deutsch (German)](README_DE.md)
|
|
420
|
+
- [Français (French)](README_FR.md)
|
|
421
|
+
- [Español (Spanish)](README_ES.md)
|
|
422
|
+
- [日本語 (Japanese)](README_JP.md)
|
|
423
|
+
- [한국어 (Korean)](README_KR.md)
|
|
424
|
+
|
|
425
|
+
---
|
|
426
|
+
|
|
427
|
+
## 📄 License
|
|
428
|
+
|
|
429
|
+
[Apache 2.0](LICENSE) Copyright 2026 [jjjjjjjjnnjnn](https://github.com/jjjjjjjjnnjnn)
|
|
430
|
+
|
|
431
|
+
---
|
|
432
|
+
|
|
433
|
+
<p align="center">
|
|
434
|
+
<strong>Stop copy-pasting between AI tools.<br>
|
|
435
|
+
Let them work together.</strong><br>
|
|
436
|
+
<br>
|
|
437
|
+
<a href="https://github.com/jjjjjjjjnnjnn/relayos"><img src="https://img.shields.io/badge/GitHub-★-181717?style=for-the-badge&logo=github" alt="GitHub"></a>
|
|
438
|
+
<a href="#-quick-start"><img src="https://img.shields.io/badge/Get_Started-10B981?style=for-the-badge" alt="Get Started"></a>
|
|
439
|
+
<br>
|
|
440
|
+
<sub><code>pip install relayos && relay</code></sub>
|
|
441
|
+
</p>
|