composio-companystack
A Composio local toolkit for the CompanyStack API. Agents in a Composio session can search UK companies by name and read a company's register profile, officers and persons with significant control (PSC).
CompanyStack's data is a copy of public registers, mainly the Companies House register. It may be incomplete or out of date. Check anything important against the company's entry at Companies House. CompanyStack is not affiliated with or endorsed by Companies House. Contains public sector information licensed under the Open Government Licence v3.0.
CompanyStack is not in Composio's hosted toolkit catalogue. This package uses Composio's local toolkits, which Composio marks as experimental: the tools run in your own process, with your own CompanyStack key, and Composio passes them to the model alongside its hosted tools.
Install
pip install -U composio-companystack
API keys
You need a Composio API key and a CompanyStack API key. Create a CompanyStack account at https://companystack.co.uk/signup to get a free key, then set it:
export COMPANYSTACK_API_KEY="cs_your_key"
export COMPOSIO_API_KEY="your_composio_key"
Use
from composio import Composio
from composio_companystack import build_toolkit
composio = Composio()
companystack = build_toolkit(composio) # or build_toolkit(composio, api_key="cs_your_key")
session = composio.create(
user_id="user_1",
experimental={"local_toolkits": [companystack]},
)
tools = session.tools()
Pass tools to your agent framework as for any Composio session. The model sees four tools:
| Tool | API call | Plans |
|---|---|---|
LOCAL_COMPANYSTACK_SEARCH_COMPANIES |
GET /company/search |
Free (first 10 results) and above |
LOCAL_COMPANYSTACK_GET_COMPANY |
GET /company/{number} |
Free and above |
LOCAL_COMPANYSTACK_GET_OFFICERS |
GET /officers/company/{number} |
Starter and above, or pay-as-you-go credits |
LOCAL_COMPANYSTACK_GET_PERSONS_WITH_SIGNIFICANT_CONTROL |
GET /psc/company/{number} |
Starter and above, or pay-as-you-go credits |
Each tool returns the API's JSON. If a call fails it returns {"error": ...} with a message that says what to do: the upgrade link (also in upgrade_url) when the call is not on the key's plan, or where to get a free key when none is set.
The calls also work without Composio:
from composio_companystack import CompanyNumberInput, CompanyStackOperations
ops = CompanyStackOperations() # reads COMPANYSTACK_API_KEY
print(ops.get_company(CompanyNumberInput(company_number="00445790")))
Plans and limits
From https://companystack.co.uk/llms.txt, where current prices and limits are kept:
- Free: £0. 1,000 requests a day, 30 a minute. Search companies (top 10 results) and pull a full company profile by number.
- Starter: £29/month or £288/year. 10,000 requests a day, 60 a minute. Adds officers, owners (PSC) and filing history, among other things.
- Pay as you go: prepaid credits, from £10 for 1,000 credits, for calls your plan does not include. A standard lookup costs 1 credit.
Full details: https://companystack.co.uk/pricing?product=api.
Development
pip install -e ".[test]"
pytest
The tests use a mocked HTTP transport and make no network calls.
Licence
MIT. See LICENSE.
Metadata
Release files for composio-companystack 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| composio_companystack-0.1.0.tar.gz | 8.2 kB | With provenance | Details for composio_companystack-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| composio_companystack-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for composio_companystack-0.1.0-py3-none-any.whl |
Total release size: 17.2 kB
Release files / composio_companystack-0.1.0.tar.gz
| Download URL | composio_companystack-0.1.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb00536c0f20bb89f74ccb06499baa186c39b9783165bd43d8f1315e4624dafc
|
|
BLAKE2b-256 checksum How to use checksums |
d6317fa8db3b248e606fba1d31a66ca9625e3c65a15fbd1430a6f16bd0a2f578
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / composio_companystack-0.1.0-py3-none-any.whl
| Download URL | composio_companystack-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22b85eedbe69b0fe4eedad1e78babb7ebaed242b7ade4dfd8cd7123145de1dec
|
|
BLAKE2b-256 checksum How to use checksums |
3997890c37160ae90bcaea4ff82f54731190a9f70f1ed93807ddb2aa2814e159
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for composio-companystack 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for composio_companystack-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.