Skip to content

Getting started

Launch Docling document conversion in your AWS account, connect privately and verify the result of your first task.

1. Launch and wait for startup

Use the Software Sushi Marketplace version described on this page, Ubuntu 24.04 x86_64, and at least t3.large / 8 GiB RAM with 32 GiB encrypted gp3 root storage. Keep IMDSv2 enabled. These are minimum starting sizes, not throughput benchmarks. Inbound application ports must remain closed.

For Session Manager, attach a customer-owned instance role with the required Systems Manager permissions and provide outbound HTTPS/DNS connectivity to the relevant endpoints. Your workstation needs AWS CLI, the Session Manager Plugin and permission to start sessions. SSH is an alternative when TCP 22 is restricted to your administrative CIDR. The application itself does not need a model-provider key.

Connect to your instance, then run the following. The second command starts a login shell as ubuntu; run the remaining commands inside that shell.

sudo cloud-init status --wait
sudo -iu ubuntu
umask 077
sudo systemctl is-active sushi-docling-api.service
bash /opt/sushi/docs/demo.sh

Wait for cloud-init to finish and every listed service to report active. The demo checks the installed service; it does not validate your own data or workload. A failed service needs diagnosis before you submit work. Do not recreate the instance identity or run a second server to bypass a startup failure.

2. Use the private connection

First boot creates a unique TLS identity and ~/.config/sushi/docling/access.json for the ubuntu account, with mode 0600. The matching server.crt sits beside it. The installed sushi-docling-api helper reads these files and verifies TLS without printing credentials. Run it on the instance as ubuntu.

To reach port 8443 from your own workstation, open a separate terminal and replace the placeholders below with your customer profile, Region and instance ID:

aws --profile <customer-profile> --region <region> ssm start-session \
  --target <instance-id> \
  --document-name AWS-StartPortForwardingSession \
  --parameters '{"portNumber":["8443"],"localPortNumber":["8443"]}'

Keep that terminal open. Forwarding a port does not install the API helper on your workstation or copy its identity files. For a workstation client, transfer only the required certificate and private client file through an authenticated channel, retain private permissions and configure the client to read credentials from that file. Do not put credentials in URLs, command arguments, user data or support logs. Do not disable certificate verification.

3. Convert your first document

Transfer a document you are authorized to process into your private instance session. The example expects customer.pdf in the current directory. For DOCX, change both the filename and the format argument. Review extracted headings, numbers and table cells against the original before using the output.

Run in a new private working directory as ubuntu. The commands write requests and responses there; retain or securely remove them according to your data policy.

python3 - customer.pdf pdf > request.json <<'PYDOC'
import base64, json, pathlib, sys
source = pathlib.Path(sys.argv[1]).read_bytes()
print(json.dumps({"format": sys.argv[2],
                  "data": base64.b64encode(source).decode()}))
PYDOC
sushi-docling-api POST /process --input request.json > converted.json
python3 - <<'PYDOC'
import json
from pathlib import Path
result = json.loads(Path('converted.json').read_text())
Path('converted.md').write_text(result['markdown'])
assert isinstance(result['document'], dict)
print('Markdown saved to converted.md; inspect it against the source document.')
PYDOC

Package limits. PDF and DOCX only; up to 10 MiB per file and 20 PDF pages, with one conversion at a time. Use a PDF with selectable text. Scanned pages, image/audio input, embeddings and a GPU endpoint are outside this package.

The fuller walkthrough and installed operating notes are in /opt/sushi/docs/DEMO.md and /opt/sushi/docs/README.md. These describe this package’s API and defaults. General upstream examples may use different endpoints or include features outside this package.

Last updated October 17, 2026 · Suggest an improvement