open-agent-control-panel 0.1.0__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.
- open_agent_control_panel-0.1.0/LICENSE +202 -0
- open_agent_control_panel-0.1.0/NOTICE +13 -0
- open_agent_control_panel-0.1.0/PKG-INFO +260 -0
- open_agent_control_panel-0.1.0/README.md +228 -0
- open_agent_control_panel-0.1.0/pyproject.toml +65 -0
- open_agent_control_panel-0.1.0/setup.cfg +4 -0
- open_agent_control_panel-0.1.0/src/oacp/__init__.py +11 -0
- open_agent_control_panel-0.1.0/src/oacp/__main__.py +8 -0
- open_agent_control_panel-0.1.0/src/oacp/a2a/__init__.py +7 -0
- open_agent_control_panel-0.1.0/src/oacp/a2a/client.py +317 -0
- open_agent_control_panel-0.1.0/src/oacp/adp/__init__.py +24 -0
- open_agent_control_panel-0.1.0/src/oacp/adp/card.py +375 -0
- open_agent_control_panel-0.1.0/src/oacp/adp/fetcher.py +232 -0
- open_agent_control_panel-0.1.0/src/oacp/adp/jcs.py +72 -0
- open_agent_control_panel-0.1.0/src/oacp/adp/probe.py +74 -0
- open_agent_control_panel-0.1.0/src/oacp/adp/routes.py +98 -0
- open_agent_control_panel-0.1.0/src/oacp/adp/service.py +473 -0
- open_agent_control_panel-0.1.0/src/oacp/api.py +267 -0
- open_agent_control_panel-0.1.0/src/oacp/app.py +106 -0
- open_agent_control_panel-0.1.0/src/oacp/cli.py +138 -0
- open_agent_control_panel-0.1.0/src/oacp/config.py +148 -0
- open_agent_control_panel-0.1.0/src/oacp/db.py +114 -0
- open_agent_control_panel-0.1.0/src/oacp/net.py +239 -0
- open_agent_control_panel-0.1.0/src/oacp/tasks.py +410 -0
- open_agent_control_panel-0.1.0/src/oacp/util.py +93 -0
- open_agent_control_panel-0.1.0/src/oacp/web/app.js +938 -0
- open_agent_control_panel-0.1.0/src/oacp/web/favicon.svg +15 -0
- open_agent_control_panel-0.1.0/src/oacp/web/index.html +67 -0
- open_agent_control_panel-0.1.0/src/oacp/web/styles.css +453 -0
- open_agent_control_panel-0.1.0/src/open_agent_control_panel.egg-info/PKG-INFO +260 -0
- open_agent_control_panel-0.1.0/src/open_agent_control_panel.egg-info/SOURCES.txt +38 -0
- open_agent_control_panel-0.1.0/src/open_agent_control_panel.egg-info/dependency_links.txt +1 -0
- open_agent_control_panel-0.1.0/src/open_agent_control_panel.egg-info/entry_points.txt +3 -0
- open_agent_control_panel-0.1.0/src/open_agent_control_panel.egg-info/requires.txt +8 -0
- open_agent_control_panel-0.1.0/src/open_agent_control_panel.egg-info/top_level.txt +1 -0
- open_agent_control_panel-0.1.0/tests/test_app.py +67 -0
- open_agent_control_panel-0.1.0/tests/test_card.py +145 -0
- open_agent_control_panel-0.1.0/tests/test_net.py +112 -0
- open_agent_control_panel-0.1.0/tests/test_registry.py +225 -0
- open_agent_control_panel-0.1.0/tests/test_tasks.py +214 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Open Agent Control Panel
|
|
2
|
+
Copyright 2026 The Open Agent Control Panel contributors
|
|
3
|
+
|
|
4
|
+
This product implements the A2A Discover Protocol (ADP) Core v1. The protocol
|
|
5
|
+
specification and its reference implementation are published by their authors
|
|
6
|
+
under the Apache License, Version 2.0.
|
|
7
|
+
|
|
8
|
+
This product talks to agents over the Agent2Agent (A2A) protocol, published at
|
|
9
|
+
https://a2a-protocol.org. A2A is an independent specification; this project
|
|
10
|
+
neither modifies nor redistributes it.
|
|
11
|
+
|
|
12
|
+
This product includes software developed by third parties under the terms of
|
|
13
|
+
the Apache License, Version 2.0. See the LICENSE file for the full license text.
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: open-agent-control-panel
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A control panel for A2A agents: register, discover, submit tasks and follow them.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Keywords: a2a,agent,agent-registry,agent-discovery,control-panel,fastapi
|
|
7
|
+
Classifier: Development Status :: 3 - Alpha
|
|
8
|
+
Classifier: Environment :: Web Environment
|
|
9
|
+
Classifier: Framework :: FastAPI
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
License-File: NOTICE
|
|
24
|
+
Requires-Dist: fastapi>=0.110
|
|
25
|
+
Requires-Dist: httpx>=0.27
|
|
26
|
+
Requires-Dist: uvicorn>=0.27
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: build>=1.0; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest>=8.0; extra == "dev"
|
|
30
|
+
Requires-Dist: twine>=5.0; extra == "dev"
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# Open Agent Control Panel
|
|
34
|
+
|
|
35
|
+
**A control panel for A2A agents.** Register them through the A2A Discover Protocol,
|
|
36
|
+
see everyone who is online, submit tasks over A2A JSON-RPC, and follow those tasks —
|
|
37
|
+
from one small FastAPI service with a dependency-free web UI.
|
|
38
|
+
|
|
39
|
+
[](https://pypi.org/project/open-agent-control-panel/)
|
|
40
|
+
[](https://www.python.org/)
|
|
41
|
+
[](LICENSE)
|
|
42
|
+
[](https://github.com/YY-Yifei/open-agent-control-panel)
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## What it does
|
|
47
|
+
|
|
48
|
+
The panel sits between *you* and a fleet of [A2A](https://a2a-protocol.org) agents. It plays
|
|
49
|
+
three roles at once:
|
|
50
|
+
|
|
51
|
+
| Role | Surface | What it gives you |
|
|
52
|
+
|---|---|---|
|
|
53
|
+
| **Registry** | `/.well-known/a2a-registry.json`, `/v1/agents` | Agents register themselves by AgentCard URL; the panel fetches, validates and probes the card |
|
|
54
|
+
| **Control plane** | `/api/panel/*` + the bundled UI | Every registered agent, its card, its skills, and the tasks you sent it |
|
|
55
|
+
| **A2A client** | `message/send`, `tasks/get`, `tasks/cancel` | Submit a task, watch it move, cancel it, continue the conversation |
|
|
56
|
+
|
|
57
|
+
The registry half implements the **A2A Discover Protocol (ADP) Core v1** contract: five operations, four invariants, and the SSRF rules in §7. The panel half is
|
|
58
|
+
deliberately outside that contract — protocol endpoints stay exactly the protocol.
|
|
59
|
+
|
|
60
|
+
## Why a registry at all
|
|
61
|
+
|
|
62
|
+
A2A defines how agents talk to each other, but not where to find them. ADP closes that gap
|
|
63
|
+
with one claim and nothing more:
|
|
64
|
+
|
|
65
|
+
> *I fetched this card from this URL at `lastOkAt`, and its digest is `cardHash`. I claim
|
|
66
|
+
> nothing else.*
|
|
67
|
+
|
|
68
|
+
No scores, no trust badges, no ranking, no proxying. Registration is not proof of ownership —
|
|
69
|
+
it only proves that the URL served that card at that moment. The panel honours that: it
|
|
70
|
+
never invents a "verified" flag, and it never changes a byte of a card.
|
|
71
|
+
|
|
72
|
+
## Quick start
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
pip install open-agent-control-panel
|
|
76
|
+
oacp serve
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Open <http://127.0.0.1:8000>. Anyone can now register an agent:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
curl -X POST http://127.0.0.1:8000/v1/agents \
|
|
83
|
+
-H 'content-type: application/json' \
|
|
84
|
+
-d '{"url":"https://agent.example.com/.well-known/agent-card.json"}'
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The response is the stored record plus a one-time `manageToken`. Keep it if you want to
|
|
88
|
+
unregister later — it is not rotated and cannot be recovered.
|
|
89
|
+
|
|
90
|
+
Then open the agent in the UI, press **Send task**, and the panel calls the agent's A2A
|
|
91
|
+
endpoint with `message/send`.
|
|
92
|
+
|
|
93
|
+
## Try it locally
|
|
94
|
+
|
|
95
|
+
A real registration needs a public HTTPS URL, because the registry fetches the card itself.
|
|
96
|
+
For a laptop demo, the repository ships a tiny echo agent and a development mode:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
# terminal 1 — a demo agent on http://127.0.0.1:9100
|
|
100
|
+
pip install -e ".[dev]"
|
|
101
|
+
python examples/echo_agent.py
|
|
102
|
+
|
|
103
|
+
# terminal 2 — the panel, in development mode
|
|
104
|
+
oacp serve --port 8000 --allow-insecure-cards --allow-private-agents
|
|
105
|
+
|
|
106
|
+
# register the demo agent through the UI, or:
|
|
107
|
+
curl -X POST http://127.0.0.1:8000/v1/agents \
|
|
108
|
+
-H 'content-type: application/json' \
|
|
109
|
+
-d '{"url":"http://127.0.0.1:9100/.well-known/agent-card.json"}'
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
`--allow-insecure-cards` accepts `http://` and private addresses for **card URLs**;
|
|
113
|
+
`--allow-private-agents` lets the A2A client call private endpoints. Both are development
|
|
114
|
+
switches: with either one on, the deployment is no longer ADP-compliant, and the panel says
|
|
115
|
+
so in its own summary.
|
|
116
|
+
|
|
117
|
+
## What the UI gives you
|
|
118
|
+
|
|
119
|
+
* **Agents** — status (`ok` / `down`), failures, last successful probe, skills, tags, task counts;
|
|
120
|
+
a detail page with endpoints, the full card and a raw-JSON view.
|
|
121
|
+
* **Tasks** — every task the panel submitted, filterable by state, with a live view of the
|
|
122
|
+
agent's latest output, the event log, and the raw request/response payloads.
|
|
123
|
+
* **Actions** — register, re-fetch a card, send a task, follow up with another message,
|
|
124
|
+
refresh from the agent, cancel, unregister, forget.
|
|
125
|
+
* **Zero build step** — the front end is three static files (`index.html`, `styles.css`,
|
|
126
|
+
`app.js`), served by the same process. No Node, no bundler, no CDN.
|
|
127
|
+
|
|
128
|
+
## Protocol surface
|
|
129
|
+
|
|
130
|
+
| Method | Path | Purpose |
|
|
131
|
+
|---|---|---|
|
|
132
|
+
| `GET` | `/.well-known/a2a-registry.json` | RegistryCard (name, apiBase, spec, probe interval, limits) |
|
|
133
|
+
| `POST` | `/v1/agents` | `{"url": …}` → fetch, validate, store; `201` + one-time `manageToken` |
|
|
134
|
+
| `GET` | `/v1/agents` | `?q=&skill=&tag=&status=&changedSince=&full=&limit=&cursor=` |
|
|
135
|
+
| `GET` | `/v1/agents/{id}` | One AgentRecord, including the card |
|
|
136
|
+
| `DELETE` | `/v1/agents/{id}` | Unregister; requires `X-ADP-Token` |
|
|
137
|
+
|
|
138
|
+
Records follow the contract exactly: `id` is derived from the normalized URL, `cardHash` is
|
|
139
|
+
`sha256(JCS(card))`, `checkedAt` moves on every attempt, `lastOkAt` only on success, and
|
|
140
|
+
`changedAt`/`prevHash` are always present (nullable) so clients need one branch, not two.
|
|
141
|
+
|
|
142
|
+
Panel endpoints (not part of ADP):
|
|
143
|
+
|
|
144
|
+
| Method | Path | Purpose |
|
|
145
|
+
|---|---|---|
|
|
146
|
+
| `GET` | `/api/panel/summary` | Counts, deployment facts, RegistryCard |
|
|
147
|
+
| `GET` | `/api/panel/agents` | Agents with local task counts |
|
|
148
|
+
| `GET` | `/api/panel/agents/{id}` | Record + interfaces + recent tasks |
|
|
149
|
+
| `POST` | `/api/panel/agents/{id}/refresh` | Probe this agent now |
|
|
150
|
+
| `DELETE` | `/api/panel/agents/{id}` | Unregister with `{"token": …}` |
|
|
151
|
+
| `POST` | `/api/panel/agents/{id}/tasks` | Submit `{"text": …}` over A2A |
|
|
152
|
+
| `GET` | `/api/panel/tasks` | Local task ledger (`agentId`, `state`, `q`, `limit`, `cursor`) |
|
|
153
|
+
| `GET` | `/api/panel/tasks/{id}` | Task + event log + raw payloads |
|
|
154
|
+
| `POST` | `/api/panel/tasks/{id}/refresh` | `tasks/get` against the agent |
|
|
155
|
+
| `POST` | `/api/panel/tasks/{id}/cancel` | `tasks/cancel` against the agent |
|
|
156
|
+
| `POST` | `/api/panel/tasks/{id}/messages` | Follow-up message in the same task/context |
|
|
157
|
+
| `DELETE` | `/api/panel/tasks/{id}` | Forget the task locally |
|
|
158
|
+
|
|
159
|
+
## Two A2A generations
|
|
160
|
+
|
|
161
|
+
Agents in the wild speak two dialects. The client reads the card, picks one, and — if the
|
|
162
|
+
agent answers *method not found* or *invalid params* — retries once with the other:
|
|
163
|
+
|
|
164
|
+
| Card shape | Methods | Message shape |
|
|
165
|
+
|---|---|---|
|
|
166
|
+
| `url` + `protocolVersion: 0.x` | `message/send`, `tasks/get`, `tasks/cancel` | `role: "user"`, parts tagged `kind: "text"` |
|
|
167
|
+
| `supportedInterfaces` / `protocolVersion: 1.x` | `SendMessage`, `GetTask`, `CancelTask` | `role: "ROLE_USER"`, parts as `{text}` |
|
|
168
|
+
|
|
169
|
+
Both responses are normalized to the same internal view, including task states such as
|
|
170
|
+
`TASK_STATE_INPUT_REQUIRED` → `input-required`.
|
|
171
|
+
|
|
172
|
+
## Configuration
|
|
173
|
+
|
|
174
|
+
Every setting has an environment variable (`OACP_*`) and most have a flag. Precedence is
|
|
175
|
+
default < environment < flag.
|
|
176
|
+
|
|
177
|
+
| Flag | Variable | Default | Meaning |
|
|
178
|
+
|---|---|---|---|
|
|
179
|
+
| `--db` | `OACP_DB_PATH` | `oacp.db` | SQLite file |
|
|
180
|
+
| `--public-url` | `OACP_PUBLIC_URL` | `http://127.0.0.1:8000` | External base URL, advertised in the RegistryCard |
|
|
181
|
+
| `--name` | `OACP_DISPLAY_NAME` | `Open Agent Control Panel` | Registry display name |
|
|
182
|
+
| `--contact` | `OACP_CONTACT` | — | Contact line in the RegistryCard |
|
|
183
|
+
| — | `OACP_SPEC_URL` | `urn:adp:core:1.0.0` | Identifier of the protocol spec |
|
|
184
|
+
| `--panel-token` | `OACP_PANEL_TOKEN` | — | Require this token on `/api/panel/*` |
|
|
185
|
+
| `--card-validation` | `OACP_CARD_VALIDATION` | `relaxed` | `strict` = ADP §6.3 exactly; `relaxed` also accepts A2A 0.3 cards |
|
|
186
|
+
| `--probe-interval` | `OACP_PROBE_INTERVAL` | `300` | Seconds between probes for healthy agents |
|
|
187
|
+
| — | `OACP_DOWN_PROBE_INTERVAL` | `60` | Seconds between probes for `down` agents |
|
|
188
|
+
| `--no-probe` | `OACP_PROBE_ENABLED` | `true` | Disable the background probe loop |
|
|
189
|
+
| — | `OACP_PROBE_CONCURRENCY` | `4` | Concurrent probes |
|
|
190
|
+
| — | `OACP_MAX_CARD_BYTES` | `1048576` | Card size cap |
|
|
191
|
+
| — | `OACP_MAX_AGENTS_PER_DOMAIN` | `100` | Per-host entry cap |
|
|
192
|
+
| — | `OACP_REGISTER_PER_HOUR` | `20` | Per-IP registration attempts per hour |
|
|
193
|
+
| `--allow-insecure-cards` | `OACP_ALLOW_INSECURE_CARDS` | `false` | **Dev only:** accept http/private card URLs |
|
|
194
|
+
| `--allow-private-agents` | `OACP_ALLOW_PRIVATE_AGENTS` | `false` | **Dev only:** call private A2A endpoints |
|
|
195
|
+
| `--a2a-timeout` | `OACP_A2A_TIMEOUT` | `60` | A2A request timeout in seconds |
|
|
196
|
+
| `--host` / `--port` | — | `127.0.0.1` / `8000` | Bind address |
|
|
197
|
+
|
|
198
|
+
## Security model
|
|
199
|
+
|
|
200
|
+
The panel makes requests to URLs chosen by strangers, so the outbound path is the product.
|
|
201
|
+
|
|
202
|
+
* **https only** for cards; userinfo and fragments are rejected.
|
|
203
|
+
* **DNS pinning** — the resolved address is validated and then pinned into the connection
|
|
204
|
+
(`Host` header + TLS SNI preserved), so a name cannot resolve to one address at check time
|
|
205
|
+
and another at connect time. Mixed public/private answers are refused outright.
|
|
206
|
+
* **Manual redirects**, at most three hops, each re-validated from scratch.
|
|
207
|
+
* **Streaming body cap**, connect/total timeouts, no cookies, no caller credentials,
|
|
208
|
+
TLS verification that cannot be switched off, and `trust_env=False` so environment proxies
|
|
209
|
+
cannot silently take over DNS and connection establishment.
|
|
210
|
+
* **A2A calls use the same guard**, which matters because a card can point anywhere.
|
|
211
|
+
* **Manage tokens are stored hashed**; the plaintext exists only in the registration response
|
|
212
|
+
and in the browser that performed it.
|
|
213
|
+
* **Optional panel token** protects `/api/panel/*` while leaving the registry open enough for
|
|
214
|
+
agents to register. That split is intentional: the protocol is public, the control plane is
|
|
215
|
+
yours.
|
|
216
|
+
|
|
217
|
+
Deploy behind TLS (a reverse proxy is fine) and set `--public-url` to the external URL so the
|
|
218
|
+
RegistryCard points somewhere reachable.
|
|
219
|
+
|
|
220
|
+
## Development
|
|
221
|
+
|
|
222
|
+
```bash
|
|
223
|
+
python -m venv .venv && . .venv/bin/activate # Windows: .venv\Scripts\activate
|
|
224
|
+
pip install -e ".[dev]"
|
|
225
|
+
python -m pytest -q
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
Layout:
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
src/oacp/
|
|
232
|
+
adp/ spec implementation: jcs, card checks, guarded fetcher, registry, routes, probe loop
|
|
233
|
+
a2a/ JSON-RPC client with the two-dialect fallback
|
|
234
|
+
tasks.py local task ledger and A2A interactions
|
|
235
|
+
api.py panel API
|
|
236
|
+
app.py application factory, static UI, error mapping
|
|
237
|
+
cli.py `oacp serve`
|
|
238
|
+
web/ index.html, styles.css, app.js
|
|
239
|
+
examples/ a tiny echo agent for local demos
|
|
240
|
+
tests/ pytest, with a mock A2A transport and a fake card fetcher
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
The test suite never touches the network: registration tests inject a fake fetcher and A2A
|
|
244
|
+
tests inject an `httpx.MockTransport`.
|
|
245
|
+
|
|
246
|
+
## Limitations
|
|
247
|
+
|
|
248
|
+
* No streaming (`message/stream`, `tasks/resubscribe`); tasks are followed by polling.
|
|
249
|
+
* Tasks are refreshed when you ask, not continuously.
|
|
250
|
+
* Single process, single SQLite file: this is a control plane, not a cluster service.
|
|
251
|
+
* No push notifications, no authentication schemes beyond A2A's own endpoint requirements.
|
|
252
|
+
|
|
253
|
+
## Links
|
|
254
|
+
|
|
255
|
+
* Source: <https://github.com/YY-Yifei/open-agent-control-panel>
|
|
256
|
+
* Package: <https://pypi.org/project/open-agent-control-panel/>
|
|
257
|
+
|
|
258
|
+
## License
|
|
259
|
+
|
|
260
|
+
Apache-2.0. See [LICENSE](LICENSE) and [NOTICE](NOTICE).
|